🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Linked List Quiz: all 8 questions

Linked List Quiz · Question 1 of 8

What is the time to access the k-th node of a singly linked list?

What is the time to access the k-th node of a singly linked list?

  1. A.O(1)
  2. B.O(k)
  3. C.O(log k)
  4. D.O(k²)
Answer & explanation

Correct answer: O(k)

There are no indexes — you must walk k nodes from the head.

Can you get the rest right without peeking?

Take the timed Linked List Quiz quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →