← Questions
Next greater element in a circular array
0
I was asked this
No reports yet. Sign in to say where you were asked it.
You get an integer array that wraps around: after the last element, scanning continues from the first. For every index, return the first value strictly greater than its own that you meet while scanning forward (wrapping as needed), or a marker such as -1 when no such value exists.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
