Next Greater Element in a Circular Array
Given a circular integer array nums, for each index find the first element greater than nums[i] when scanning to the right circularly. If no such element exists, return -1 for that index.
Retur...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
