The output list also need to be sorted -- better to make this clear

  • 0

    If the output list was unsorted, some test case may fail:

    Submission Result: Wrong Answer
    Input: 	        [[1,5]], [6,8]
    Output: 	[[6,8],[1,5]]
    Expected: 	[[1,5],[6,8]]

    So better to make this clear in the problem description.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.