Skip to content

Commit 95c22da

Browse files
authored
Update Two Sum
Runtime: 40 ms, faster than 11.83% of C++ online submissions for Two Sum. Memory Usage: 8.9 MB, less than 55.50% of C++ online submissions for Two Sum.
1 parent e88da9a commit 95c22da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Two Sum

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public:
88
if(nums[i]+nums[j]==target){
99
x.push_back(i);
1010
x.push_back(j);
11-
}
11+
break;
1212
}
1313
}
1414
return x;

0 commit comments

Comments
 (0)