InterviewBit Problems   Best Time to Buy and Sell Stocks II : Solved

About the Best Time to Buy and Sell Stocks II : Solved category (1)
Can anybody help catch error in this code it is not giving correct output (1)
Easy Greedy O(n) Solution (1)
O(n) time, O(1) space C++ solution || Easy (3 lines) (1)
O(n) time and O(1) space solution in Java (1)
Greedy solution in Java (1)
O(n) approach in C++ (easy to understand) (1)
Simplest Code in C++ (1)
Easy C++ solution in linear time complexity and constant space (1)
Recursive Solution O(n) time and O(1) space (1)
Best Approach for this question (1)
Solution using DP states - very intuitive (1)
C++ solution using DP (Although it can be optimized to not use DP) (1)
Why runtime error is showing (1)
Easy C++ iterative solution (1)
Simplest c++ solution o(n) possible (1)
Python One-Liner (1)
Python O(N) time complexity and O(1) space complexity (1)
Python Greedy Solution O(n) (1)
Easy to understand dp sol c++ (1)
Short and easy solution in c++ (1)
Best Explanation on earth with very unique and simple method (1)
Non DP Solution Validity (1)
Python 3 O(n) Greddy (1)
O(n) space DP-based C++ solution (1)
Simplest Approach C++ O(N) (1)
Super easy solution to understand the concept [c++] (1)
Python DP Solution Recursive and None-recursive (with Stacks) (1)
Please give solution approach which explains it completely (1)
Easiest cpp solution (1)