Reverse Linked List
Easy
Linked List
Grind 75NeetCode 150marc30
Given the head of a singly linked list, reverse the list, and return the reversed list.

Constraints:

  • The number of nodes in the list is the range [0, 5000]
  • -5000 <= Node.val <= 5000