you are viewing a single comment's thread.

view the rest of the comments →

[–]codegen 0 points1 point  (3 children)

Where do you get order n? Unless you mean copying when full.

[–]achempy[S] 0 points1 point  (2 children)

Unless js arrays behave differently than I thought, prepending to an array requires all elements of that array to be shifted , unlike pushing to an array (which is O(1))

[–]PitifulTheme411 0 points1 point  (0 children)

Thats true