diff --git a/Solutions/subarraywith0sum.cpp b/Solutions/subarraywith0sum.cpp new file mode 100644 index 0000000..78e03f4 --- /dev/null +++ b/Solutions/subarraywith0sum.cpp @@ -0,0 +1,48 @@ +#include +using namespace std; + + +class Solution{ + public: + int maxLen(vector&A, int n) + { + unordered_mappsum; + // Your code here + int len=0, temp=0;; + for(int i=0;i>t; +while(t--) +{ +int m; +cin>>m; +vectorarray1(m); + +for(int i=0;i>array1[i]; +} +Solution ob; +cout<