Skip to content
RED SAGSkills
easy5 pts · first answer countsarraystime-complexityjavascript

Using shift as a queue

You use a JavaScript array as a queue with push and shift on 1,00,000 items. Why can this be slow?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions