Can someone tell me why my solution got tle. As par I know deque takes O(1) for insertion and deletion from front and back.
help!
Can someone tell me why my solution got tle. As par I know deque takes O(1) for insertion and deletion from front and back.