DSA Key Problems

Kth Smallest Element in a Sorted Matrix

Given a square matrix whose rows and columns are nondecreasing, return the k-th smallest element when all entries are counted with multiplicity.