← TCS questions

Reverse a singly linked list

Filed under TCS · Also reported at Bristlecone, Citi, Increff, Informatica, MathWorks, Moonfrog Labs, PhaseZero, Platform9 Systems and 3 more

Given the head of a singly linked list, reverse the list in-place and return the new head node. Describe the logic and state its time and space complexity.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related TCS questions

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