Skip to main content
Reverse Linked List | AlgoCracked
AlgoCracked
ProblemsReverse Linked List
Easy74.0% acceptance
Blind75Linked ListRecursion

Reverse Linked List

Reverse a singly linked list and return the new head. Input format The list is given as a JSON array of its values, e.g. [[1,2,3,4,5]] . Your method receives the head ListNode (with .val and .next ); ListNode is predefined.

Loading workspace…