Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 19bb9df

Browse files
Merge pull request youngyangyang04#950 from Martin-Hsu/patch-1
Update 0406.根据身高重建队列.md
2 parents 71eb4ec + 595ab6e commit 19bb9df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

problems/0406.根据身高重建队列.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ C++代码如下:
101101
// 版本一
102102
class Solution {
103103
public:
104-
static bool cmp(const vector<int> a, const vector<int> b) {
104+
static bool cmp(const vector<int>& a, const vector<int>& b) {
105105
if (a[0] == b[0]) return a[1] < b[1];
106106
return a[0] > b[0];
107107
}
@@ -130,7 +130,7 @@ public:
130130
class Solution {
131131
public:
132132
// 身高从大到小排(身高相同k小的站前面)
133-
static bool cmp(const vector<int> a, const vector<int> b) {
133+
static bool cmp(const vector<int>& a, const vector<int>& b) {
134134
if (a[0] == b[0]) return a[1] < b[1];
135135
return a[0] > b[0];
136136
}

0 commit comments

Comments
 (0)