You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the "Things to look out for during interviews" page for Queue, it's mentioned that enqueue is O(n) operation. But enqueue is just a push right? Shouldn't this be dequeue (removing from the start)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In the "Things to look out for during interviews" page for Queue, it's mentioned that enqueue is O(n) operation. But enqueue is just a push right? Shouldn't this be dequeue (removing from the start)?
Beta Was this translation helpful? Give feedback.
All reactions