Merge k Sorted Lists - D&C Approach

Instead of merging one by one (O(kN)O(kN) total), divide the lists in half and merge pairwise.

1.1. Split kk lists into two groups of k/2k/2.

2.2. Recursively merge each group.

3.3. Merge the two resulting lists.

This gives O(Nlogk)O(N \log k) where NN is total elements. Each element is touched O(logk)O(\log k) times across all merge levels.