Skip to content

EasyConceptData structures and algorithms

What is the time complexity of list append and insert at the front?

What a good answer covers

Append is amortised O(1) while insert at index zero is O(n) due to shifting.

More on Data structures and algorithms

Flashcards for this topic