maximum-subarray 1.0.0
Maximum Subarray
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 22 of file main.cpp.

23{
24 vector<int> nums = {-2, 1, -3, 4, -1, 2, 1, -5, 4};
25 cout << "output: " << Solution().maxSubArray(nums) << '\n';
26 return 0;
27}
int maxSubArray(vector< int > &nums)
Definition main.cpp:8

References Solution::maxSubArray().