O(nlogn) in Python doesn't pass (TLE)


#1

I have firstly implemented the binary search solution (O(nlogn)) in Python and the result was TLE.
I have managed to pass only with the O(n) solution.