Skip to content

Commit f3c09d2

Browse files
committed
update
1 parent c8f8e80 commit f3c09d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/queue-reconstruction-by-height.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @return {number[][]}
55
*/
66
var reconstructQueue = function (people) {
7-
// 按照身高从高到低排序
7+
// 按照身高从高到低排序, 身高相等的根据第二位的大小从小到大排序
88
people.sort((a, b) => {
99
if (a[0] === b[0]) {
1010
return a[1] - b[1];

0 commit comments

Comments
 (0)