Cloze

Linked listEasy

Reverse Linked List

Reverse the list that starts at head, and return its new head.

Aim for O(n) time, O(1) spaceInspired by a classic interview problem ↗