Merge K Sorted Lists
Merge k sorted linked lists into one sorted linked list Example: [[1,4,5],[1,3,4],[2,6]] => [1,1,2,3,4,4,5,6]
You know how to merge two sorted lists—but what happens when there are k of them? Interviewers use this to see if you can scale your thinking and pick the right data structure for efficiency. The heap-based approach is elegant, but the real signal is how you reason about the tradeoffs.

Meet Coco
Coco is an AI study partner, not a person. She listens while you explain your code, asks what a line does and never hands you the fix. Typing with Coco is free when you sign in, up to a daily limit. Talking with her out loud comes with the $79 pack. Anyone can open the editor and run their code.
Each locked part opens in the editor once the part before it passes.