reverse-linked-list 1.0.0
Reverse Linked List
Loading...
Searching...
No Matches
  1. Reverse Linked List

Difficulty

Easy

Question

Given the head of a singly linked list, reverse the list, and return the reversed list.

Example:

Input: head = [1,2,3,4,5] Output: [5,4,3,2,1]

Link

Reverse Linked List