Tap here to switch tabs
Problem
Submissions
Solution

Solution: Kth Smallest Number in M Sorted Lists

Statement

Naive approach

A naive approach to this problem can be to merge all the lists into a single list and then sort it to find the kthk^{th} smallest number from it.

The time complexity of the naive approach is O(nlogn)O(n \log n) ...

Tap here to switch tabs
Problem
Submissions
Solution

Solution: Kth Smallest Number in M Sorted Lists

Statement

Naive approach

A naive approach to this problem can be to merge all the lists into a single list and then sort it to find the kthk^{th} smallest number from it.

The time complexity of the naive approach is O(nlogn)O(n \log n) ...