Question d’entretien chez ZS

Q: Write a program to reverse a linked list.

Réponse à la question d'entretien

Utilisateur anonyme

1 juill. 2026

I explained the iterative approach using three pointers (prev, current, and next). I traversed the linked list, reversed each node's pointer, and updated the pointers until the end of the list. The solution has O(n) time complexity and O(1) extra space complexity. These are common interview questions and suitable for an interview experience form.