Question d’entretien chez Rave Business Systems

How to reverse a list.

Réponse à la question d'entretien

Utilisateur anonyme

30 janv. 2024

I use two pointers, one starting from the beginning of the list (start) and the other starting from the end of the list (end). They swap the elements at these positions iteratively until the pointers meet in the middle, effectively reversing the list in place.