Do deque in stl consume more memory than vector?
Here i used vector of deques which resulted in Memory Limit Exceed LINK to code here
Here i used vector of vectors which resulted in Accepted LINK to code here
Anyone give your insights regarding this issue? Do i missing something related to implementation of deque or vector?