This commit is contained in:
2022-11-30 18:20:36 +08:00
parent b13cfa00bb
commit 72555b19e0
132 changed files with 332 additions and 334 deletions

View File

@@ -6,7 +6,7 @@ TEST(Problem33, Case1) {
vector<int> nums{4, 5, 6, 7, 0, 1, 2};
int target{0};
int o{4};
Solution solution;
S0033 solution;
EXPECT_EQ(solution.search(nums, target), o);
}
@@ -14,7 +14,7 @@ TEST(Problem33, Case2) {
vector<int> nums{4, 5, 6, 7, 0, 1, 2};
int target{3};
int o{-1};
Solution solution;
S0033 solution;
EXPECT_EQ(solution.search(nums, target), o);
}
@@ -22,6 +22,6 @@ TEST(Problem33, Case3) {
vector<int> nums{1};
int target{0};
int o{-1};
Solution solution;
S0033 solution;
EXPECT_EQ(solution.search(nums, target), o);
}