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 4efc5b2 commit 9e58596Copy full SHA for 9e58596
cpp/_1.cpp
@@ -23,7 +23,7 @@ class Solution {
23
if (m.find(nums[i]) == m.end() ) {
24
// store the first one poisition into the second one's key
25
m[target - nums[i]] = i;
26
- }else {
+ } else {
27
// found the second one
28
result.push_back(m[nums[i]]);
29
result.push_back(i);
0 commit comments