The problem, in one line. Given k linked lists, each already sorted, join them into one sorted linked list. LeetCode 23.
The tell. “k sorted” inputs. The next node of the answer is always the smallest of the k current fronts, and a heap of k entries finds the smallest front without scanning all k. The lesson behind it is Two heaps and a merge (running median, k-way merge, top-k).