Multiple ChoiceBeginner 30s
LL vs Array: Insert at Head
Inserting at the head of a linked list vs an array:
Options
- 1Both O(1)
- 2Both O(n)
- 3Linked list: O(n), Array: O(1)
- 4Linked list: O(1), Array: O(n)
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.