← Infosys questions

Merge sort on a doubly linked list

Filed under Infosys

Given the head of a doubly linked list, write a function to sort it in ascending order using the merge sort algorithm. Return the new head of the sorted doubly linked list.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Infosys questions

Collected from public candidate posts and coding forums. Updated Nov 2026.