We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d89b396 commit 595ab6eCopy full SHA for 595ab6e
problems/0406.根据身高重建队列.md
@@ -101,7 +101,7 @@ C++代码如下:
101
// 版本一
102
class Solution {
103
public:
104
- static bool cmp(const vector<int> a, const vector<int> b) {
+ static bool cmp(const vector<int>& a, const vector<int>& b) {
105
if (a[0] == b[0]) return a[1] < b[1];
106
return a[0] > b[0];
107
}
@@ -130,7 +130,7 @@ public:
130
131
132
// 身高从大到小排(身高相同k小的站前面)
133
134
135
136
0 commit comments