Untitled
unknown
plain_text
a year ago
125 B
5
Indexable
Write a function to reverse a singly linked list. Input: 1 -> 2 -> 3 -> 4 -> 5 -> null Output: 5 -> 4 -> 3 -> 2 -> 1 -> null
Editor is loading...
Leave a Comment
Write a function to reverse a singly linked list. Input: 1 -> 2 -> 3 -> 4 -> 5 -> null Output: 5 -> 4 -> 3 -> 2 -> 1 -> null