You are viewing a single comment's thread. Return to all comments →
Thank you, good hint. Another thing that I haven't realised immediately is that the push is always an O(1).
Seems like cookies are disabled on this browser, please enable them to open this website
Queues: A Tale of Two Stacks
You are viewing a single comment's thread. Return to all comments →
Thank you, good hint. Another thing that I haven't realised immediately is that the push is always an O(1).