Cellulant interview question

Can you reverse a linked list?

Interview Answer

Anonymous

20 Sept 2024

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