container-with-most-water 1.0.0
Container With Most Water
Loading...
Searching...
No Matches
main.cpp File Reference
#include <iostream>
#include <vector>
Include dependency graph for main.cpp:

Go to the source code of this file.

Data Structures

class  Solution
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 29 of file main.cpp.

30{
31 vector<int> height = {1,8,6,2,5,4,8,3,7};
32 // vector<int> height = {1,2,1};
33 Solution sol;
34 cout << sol.maxArea(height) << endl;
35 return 0;
36}
int maxArea(vector< int > &height)
Definition main.cpp:9

References Solution::maxArea().