s0011
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-03 15:22:56 +08:00
parent 914c04c9c5
commit 090003819d
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#include "s0011_container_with_most_water.hpp"
#include <gtest/gtest.h>
TEST(Problem11, Case1) {
vector<int> height{1, 8, 6, 2, 5, 4, 8, 3, 7};
int o{49};
Solution solution;
EXPECT_EQ(solution.maxArea(height), o);
}
TEST(Problem11, Case2) {
vector<int> height{1, 1};
int o{1};
Solution solution;
EXPECT_EQ(solution.maxArea(height), o);
}