News

378.-Kth-Smallest-Element-in-a-Sorted-Matrix Given an n x n matrix where each of the rows and columns is sorted in ascending order, return the kth smallest element in the matrix.
Repository files navigation Given a matrix mat [] [] of size n*n, where each row and column is sorted in non-decreasing order. Find the kth smallest element in the matrix.