When I run a custom test case the output is not sorted. Order of pairs in the output can be different from the reference implementation. Please add sorting.
However there is no such problem in "Accept button" test cases. They sort output just fine.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.