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.
I'm noob -,-
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.
I'm noob -,-