diff --git a/cpp/01_SmallestLeft.exe b/cpp/01_SmallestLeft.exe new file mode 100644 index 0000000..8fb3e6f Binary files /dev/null and b/cpp/01_SmallestLeft.exe differ diff --git a/cpp/02_SumOfAllSubArray.cpp b/cpp/02_SumOfAllSubArray.cpp new file mode 100644 index 0000000..1e659ed --- /dev/null +++ b/cpp/02_SumOfAllSubArray.cpp @@ -0,0 +1,24 @@ +#include +using namespace std; + +int main(){ + int n; + cin>>n; + + int arr[n]; + for(int i = 0; i>arr[i]; + } + + int curr = 0; + // Number of Sub arrays = n*(n+1)/2 + for(int i = 0;i