AlgoMaster Logo

Kth Smallest Element in Sorted Matrix

matrix=[[1,5,9],[10,11,13],[12,13,15]],k=8
0 / 11
algomaster.io
Step:Flatten every cell into one list, sort it, then read index k - 1