Skip to content

Commit 16e48a0

Browse files
authored
Update sort-the-matrix-diagonally.cpp
1 parent e3827a5 commit 16e48a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/sort-the-matrix-diagonally.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class Solution {
1010
lookup[i - j].emplace_back(mat[i][j]);
1111
}
1212
}
13-
for (auto& [k, v] : lookup) {
13+
for (auto& [_, v] : lookup) {
1414
sort(v.begin(), v.end());
1515
}
1616
for (int i = mat.size() - 1; i >= 0; --i) {

0 commit comments

Comments
 (0)