8 pts
Linked-list cost model precision
Which statement is the strongest professional description of linked-list insertion cost?
This assessment verifies the Linked Lists and Pointer Thinking module. Passing it contributes up to 6 points in the 36-41 score band.
Questions
8
Limit
85m
Pass
85%
Score
+6
8 pts
Which statement is the strongest professional description of linked-list insertion cost?
14 pts
Merge two sorted singly linked lists into one sorted list. You may reuse existing nodes. Explain edge cases, pointer safety, and complexity.
13 pts
Detect whether a singly linked list has a cycle using O(1) extra memory. Explain why comparing values is wrong.
13 pts
A workflow engine stores retry steps as a linked chain. A data bug can point a step back to an earlier step. Workers sometimes spin forever. Review the failure mode and propose a robust detection or prevention strategy.
13 pts
Review this linked-list reversal idea: `current.next = prev; current = current.next; prev = current;`. Explain the bug and give the correct pointer update order.
14 pts
Remove the nth node from the end of a singly linked list in one pass. Explain why a dummy node helps and how you handle removing the head.
14 pts
Design the core data structures for an LRU cache that supports get and put in O(1). Explain why a linked list alone is insufficient and what consistency risks exist.
11 pts
A product feed needs page rendering, direct jumps by offset, and scanning visible ranges. Which answer is strongest?