Problem 378 · Medium

Kth Smallest Element in a Sorted Matrix

Find the kth smallest value in a matrix whose rows and columns are sorted. The visual works either with a frontier heap across rows or with a search over value ranges.

Open the interactive visualisation