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

Inserting at the front of an array

You call arr.unshift(x) on an array with n elements. Why is this usually O(n)?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions