Input: [[0,2,3],[4,6,3],[2,4,3]] Expected: [[0,3],[6,0]] Output: [[0,3],[2,0],[4,3],[6,0]]
As mentioned in the problem, input buildings are sorted by their start location. Hence, this input is invalid.
I had solved this problem (Accepted) a few weeks ago, but now the same code fails because of this new test case.
@humachine Thanks for reporting, sorry I added this erroneous test case. This is now fixed.