Search⌘ K
AI Features

Sort List

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

Statement

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

Constraints: ...