Pregunta de entrevista de Yelp

How would you reverse a linked list?

Respuestas de entrevistas

Anónimo

1 jul 2016

Using a stack takes extra space, we can reverse a linked list without using any extra space and by just O(n);

1

Anónimo

7 may 2016

Use a stack