Question d’entretien chez Yelp

How would you reverse a linked list?

Réponses aux questions d'entretien

Utilisateur anonyme

1 juil. 2016

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

1

Utilisateur anonyme

7 mai 2016

Use a stack