Question d’entretien chez Evertz Microsystems

How do you reverse a singly linked a list?

Réponse à la question d'entretien

Utilisateur anonyme

16 févr. 2019

//Python 3 alist = [1, 2, 3, 4, 5, 6, 7, 8] print(alist[::-1]) //JavaScript function LinkedListNode(value){ this.value = value; this.next = null; }