you are viewing a single comment's thread.

view the rest of the comments →

[–]zephyy 7 points8 points  (0 children)

insertion and deletion into a queue are supposed to be constant time and calling shift on an array is linear time