Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0148. Sort List #33

Open
PalmaAnd opened this issue Oct 10, 2023 · 0 comments
Open

0148. Sort List #33

PalmaAnd opened this issue Oct 10, 2023 · 0 comments
Assignees
Labels
Leetcode Leetcode problem medium Medium labeled Leetcode problem
Milestone

Comments

@PalmaAnd
Copy link
Owner

Sort List

Link to the problem: https://leetcode.com/problems/sort-list/

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

Example 1:

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

Example 2:

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

Example 3:

Input: head = []
Output: []


@PalmaAnd PalmaAnd added medium Medium labeled Leetcode problem Leetcode Leetcode problem labels Oct 10, 2023
@PalmaAnd PalmaAnd added this to the Linked List milestone Oct 10, 2023
@PalmaAnd PalmaAnd self-assigned this Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Leetcode Leetcode problem medium Medium labeled Leetcode problem
Projects
None yet
Development

No branches or pull requests

1 participant