โ† Testbook questions

Detect a loop in a linked list and reverse in O(1) space

Filed under Testbook

The question

Detect a loop in O(n) (slow/fast pointers, then a hashing alternative) and reverse a linked list in O(1) space.

No write-up yet. Related questions below have one.

Related Testbook questions

Collected from public candidate posts and coding forums. Updated Nov 2026.