• + 5 comments

    Thanks man. It passed all the given test cases. But this one(not given in hackerrank) failed:

    7

    5 2

    1 2

    3 3

    2 5

    6 2

    1 5

    1 6

    Or m I missing something?