You are viewing a single comment's thread. Return to all comments →
sorted_arr = [arr[i][k] for i in range(n)] sorted_arr.sort() for x in sorted_arr: j = 0 while arr[j][k] != x: j += 1 print(*arr[j]) arr.pop(j)
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Athlete Sort
You are viewing a single comment's thread. Return to all comments →