Second last node in one pass, then detect a loop
Filed under Opera Solutions
The question
Get to the second last node of a linked list in a single pass; then use similar logic to detect a loop (Floyd).
No write-up yet. Related questions below have one.
Related Opera Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.