Test case failed : [[],[10,20],[50,60],[10,40],[5,15],[5,10],[25,55]]


  • 0
    J

    Could someone help explaining this, pls.

    [[],[10,20],[50,60],[10,40],[5,15],[5,10],[25,55]]

    From what I understand [25,55] overlaps with both [50,60] & [10,40], so it shouldn't be added, correct ? but OJ returns expected output as true. Not sure if misunderstood something.

    My output:

    [null,true,true,true,false,true,false]

    Expected:
    [null,true,true,true,false,true,true]


Log in to reply
 

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