Live Batches
Masterclasses
Menu
Free Courses
Account
Login / Sign Up
Problem Submissions Solution

Sort A Linked List (Merge Sort)

Difficulty: Medium

Acceptance: 58.00%

Points: 30.00

You are given the head of a singly linked list. Your task is to sort the linked list in non-decreasing order using the merge sort technique and return the head of the sorted linked list.

Topics

Companies

Articles

Examples:

N/A

Constraints:
  • 0 = Number of nodes = 105
  • -10? = Node.data = 10?
Companies:
Amazon Microsoft Apple Samsung Visa + 1 more
Topics:
Linked List
Locked Content
Access Restricted: Please Login to access the code editor and test cases.