Find the kth smallest element in an n x n matrix where every row and column is sorted.
Constraints
Example
>>> kth_smallest([[1,5,9],[10,11,13],[12,13,15]], 8) 13 >>> kth_smallest([[-5]], 1) -5 >>> kth_smallest([[1,2],[1,3]], 3) 2
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints