Challenges • Asked about 5 years ago by Anonymous
This is the main discussion thread generated for Next Larger In A Circular Array.
in the case [ 11, 13, 21, 3 ] shouldn't the answer be [ 13, 21, -1, 11 ] ?
it seems 11 -> 13, 13 -> 21, 21 -> -1 for 3 we loop back to the start so 3 -> 11