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
Code challenge
Problem
Given the head of a singly linked list (`{ val, next }`), reverse it and return the new head.