Can someone tell me why my solution got tle. as par i know deque has takes O(1) for insertion and deletion from the front and back.
I'm noob -,-
help!
Can someone tell me why my solution got tle. as par i know deque has takes O(1) for insertion and deletion from the front and back.
I'm noob -,-