def kthSmallest(self, matrix, k):
ans = 
for item in matrix:
ans = sorted(ans)[:k]
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.