map-of-highest-peak 1.0.0
Map of Highest Peak
Loading...
Searching...
No Matches
main.cpp File Reference
#include <bits/stdc++.h>
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 51 of file main.cpp.

52{
53 vector<vector<int>> water = {{0,0,1},{1,0,0},{0,0,0}};
54 vector<vector<int>> height = Solution().highestPeak(water);
55 for (vector<int>& row: height)
56 {
57 for (int c: row)
58 cout << c << " ";
59 cout << endl;
60 }
61 return 0;
62}
vector< vector< int > > highestPeak(vector< vector< int > > &isWater)
Definition main.cpp:8

References Solution::highestPeak().