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

Function main

CPP/array-2d/kadane_algo.cpp:22–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 #endif
21}
22int main(){
23
24 int n;
25 cin>>n;
26 int arr[n];
27 for (int i = 0; i < n; ++i)
28 {
29 cin>>arr[i];
30 }
31 cout<<kadane(arr, n)<<endl;
32
33
34
35
36 return 0;
37}

Callers

nothing calls this directly

Calls 1

kadaneFunction · 0.85

Tested by

no test coverage detected