Skip to content

Commit d421998

Browse files
committed
2
1 parent 347f42a commit d421998

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TwoSum/TwoSum.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
bool lessthan(const pair<int, int>& lhs, const pair<int, int>& rhs) {
32
if (lhs.first == rhs.first)
43
return lhs.second < rhs.second;
@@ -10,6 +9,7 @@ class Solution {
109
vector<int> twoSum(vector<int> &numbers, int target) {
1110
// Start typing your C/C++ solution below
1211
// DO NOT write int main() function
12+
1313
vector<pair<int, int>> vnum;
1414
for (size_t i = 0; i < numbers.size(); i++) {
1515
vnum.push_back(make_pair(numbers[i], i + 1));
@@ -30,4 +30,4 @@ class Solution {
3030
}
3131
return ans;
3232
}
33-
};
33+
};

0 commit comments

Comments
 (0)