Easy Lists

Linked List

Receives an array of integers and builds a singly linked list, where each node holds a value and a pointer to the next one. It walks the list following each next pointer until it reaches null, and rebuilds the sequence backwards. Returns a new array with the values in reverse order.

Visualization

Input

Algorithm code

Custom input

Saved inputs

References