I output [3,2]，but it gaves the answer [2,3]
I output [5,3]，but it gaves the answer [3,5]
Make sure the index are sorted?
The first index must less than the second,but the answer is not! Why?And how to sort the index?
It would be helpful if you can post your code.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.