diff --git a/cpp/Ayushi0901_kadane'salgorithm.cpp b/cpp/Ayushi0901_kadane'salgorithm.cpp new file mode 100644 index 00000000..2a2e5c55 --- /dev/null +++ b/cpp/Ayushi0901_kadane'salgorithm.cpp @@ -0,0 +1,33 @@ +#include +#include +using namespace std; + +int main(){ + int n; + cin>>n ; + int arr[n]; + for(int i=0;i>arr[i]; + + } + int currSum=0; + int maxsum=INT_MIN; + +for(int i=0;i