Skills101
← All practice quizzes

Linked List Quiz

8 questions10 minPass: 60%+10 XP on first pass

Reversal, fast and slow pointers, cycle detection, dummy nodes and the gap trick.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

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

  2. Question 2

    When reversing a linked list, why do we save cur.next before changing cur.next = prev?

  3. Question 3

    The list is 1 → 2 → 3 → 4 → 5. Which node does the fast & slow pointer method return as the middle?

  4. Question 4

    Floyd's cycle detection uses…

  5. Question 5

    What is the main benefit of a dummy (sentinel) node?

  6. Question 6

    To remove the N-th node from the end in one pass, you…

  7. Question 7

    What are the time and extra space of iterative linked-list reversal?

  8. Question 8Select all that apply

    Which steps solve "Palindrome Linked List" in O(1) extra space? (select all that apply)