Pregunta de entrevista de Cellulant

Can you reverse a linked list?

Respuesta de la entrevista

Anónimo

20 sep 2024

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