Skip to content

Commit c87b8af

Browse files
committed
Add C++ solution for leetcode 35.
1 parent 42b6f0f commit c87b8af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp-leetcode/leetcode35-search-insert-position.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Solution {
2121
int main()
2222
{
2323
Solution sol;
24-
vector<int> nums = {4, 5, 6, 7, 0, 1, 2};
25-
int target = 0;
24+
vector<int> nums = {1, 3, 5, 6};
25+
int target = 4;
2626
int res = sol.searchInsert(nums, target);
2727
cout << res << endl;
2828

0 commit comments

Comments
 (0)