Untitled

Anonymous
plain_text
07/09/2024 10:35 AM
168 B
19
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