Merge K Sorted Linked Lists
Merge K sorted linked lists.
Input: lists = [[2,2,3],[1,5]]
Output: [1,2,2,3,5]
Explanation: Extracts the smallest current node iteratively using a priority queue to build a single merged and sorted linked list.
Merge K sorted linked lists.
Input: lists = [[2,2,3],[1,5]]
Output: [1,2,2,3,5]
Explanation: Extracts the smallest current node iteratively using a priority queue to build a single merged and sorted linked list.
More interviews, more skills, more success.
1 answer from the community
Answer any un-answered question from our database to unlock all community answers for 30 days.
2 answers published. Last candidate submission on Sep 10 2026, 12:03pm PDT. Interview question asked to Software Engineers interviewing at Rocket Lab, Snap, Nubank and other companies. Original question asked: Merge K Sorted Linked Lists. Question last reported by a candidate interviewing at Vodafone for a Software Engineer interview on Oct 18 2026, 8:52am PDT.