Untitled

mail@pastecode.io avatar
unknown
plain_text
5 days ago
125 B
1
Indexable
Never
Write a function to reverse a singly linked list.
Input: 1 -> 2 -> 3 -> 4 -> 5 -> null
Output: 5 -> 4 -> 3 -> 2 -> 1 -> null
Leave a Comment