Given a circular integer array nums, where the element after nums[nums.length - 1] is nums[0], return an array containing the next greater element for each element in nums.
The next greater element of nums[i] is the first element that is strictly greater than nums[i] when traversing forward from index
If no greater element exists for nums[i], return
Constraints:
nums.length
nums[i]
Given a circular integer array nums, where the element after nums[nums.length - 1] is nums[0], return an array containing the next greater element for each element in nums.
The next greater element of nums[i] is the first element that is strictly greater than nums[i] when traversing forward from index
If no greater element exists for nums[i], return
Constraints:
nums.length
nums[i]