MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/trappingWaterProblem.cpp:43–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42
43int main()
44{
45 int t;
46 cin>>t;
47
48 while(t--){
49 int n ;
50 cin>>n;
51
52 int a[n];
53
54 for(int i = 0;i<n;i++)
55 cin >> a[i];
56
57 Solution obj;
58 cout<<obj.trappingWater(a, n)<<endl;
59
60 }
61
62return 0;
63
64}

Callers

nothing calls this directly

Calls 1

trappingWaterMethod · 0.80

Tested by

no test coverage detected