Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
Sherxon
· 9y ago · 0 comments
Right, Deque is also another option, which has the same amortized time complexity and but extra O(n) space is required for Queue. In the given solution, O(n) time complexity and O(1) space is used
Comments
No comments yet.
Better HN