206. Reverse Linked List

Reverse a singly linked list and return the new head.

Patterns: linked-list. Difficulty: easy.

Open in Dryrun