Ice Cream Parlor

  • + 2 comments

    is there any problem with the approach? O(nlogn) complexity, but pass only the second test case and not the first!