Cellulant interview question

Can you reverse a linked list?

Interview Answer

Anonymous

Sep 20, 2024

Traverse the list, adjusting pointers so that each node points to the previous one. Continue until all pointers are reversed.