Re: [閒聊] 每日leetcode

看板Marginalman作者 (smart0eddie)時間1年前 (2024/07/22 09:16), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串540/1548 (看更多)
2024-07-22 2418. Sort the People You are given an array of strings names, and an array heights that consists of distinct positive integers. Both arrays are of length n. For each index i, names[i] and heights[i] denote the name and height of the ith person. Return names sorted in descending order by the people's heights. 額 我不知道這題是要考sorting演算法 還是要考indexed sorting應用 反正解答打開來好像很多人都是直接套sort 那就 對啊 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 73.173.211.221 (美國) ※ 文章網址: https://www.ptt.cc/bbs/Marginalman/M.1721611011.A.B88.html
文章代碼(AID): #1cdRC3k8 (Marginalman)
討論串 (同標題文章)
文章代碼(AID): #1cdRC3k8 (Marginalman)