All challenges
Multiple ChoiceBeginner 30s

LL vs Array: Insert at Head

Inserting at the head of a linked list vs an array:
Options
  1. 1Both O(1)
  2. 2Both O(n)
  3. 3Linked list: O(n), Array: O(1)
  4. 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.

Play this in a 3-minute battle