Time Limit Exceeded in Python

programming
Tags: #<Tag:0x00007f24286ffc90>

#1

I am getting TLE for a solution using two lists in python.
Why is it so?
Time is O(1) only. It should show memory limit exceeded.


#2

I also got same issue, I think remove operation is again of O(n) in sorted list.