deno.land / x / masx200_leetcode_test@10.6.5 / sort-the-people / index.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
export default function sortPeople( names: string[], heights: number[],): string[] { return [...names.entries()].sort((a, b) => -(heights[a[0]] ?? 0) + (heights[b[0]] ?? 0) ).map((a) => a[1]);}
masx200_leetcode_test

Version Info

Tagged at
a year ago