Search⌘ K
AI Features

Sort List

Sort List gives you the head of a linked list and asks you to return the list with all node values arranged in ascending order, including negative values.

Statement

Given the head of a linked list, return the list after sorting it in ascending order.

Constraints: ...