Skip to content

Code challenge

Reverse a Linked List

Problem

Given the head of a singly linked list (`{ val, next }`), reverse it and return the new head.
Editor · javascript4 lines · 51 chars
Back to topic
Reverse a Linked List — Linked Lists · Aevrofy