Kth Smallest Element in a Sorted Matrix

Solution Code

Time Complexity

O(N log(Max - Min)

Space Complexity

O(1)