InterviewBit Problems   Best Time to Buy and Sell Stock atmost : Unsolved


About the Best Time to Buy and Sell Stock atmost : Unsolved category (1)
O(n2*k) or worst case O(n3) (As k can reach 10^9) but still TLE (1)
C++ solution throws bad alloc (4)
Wrong test case for this problem (1)
Can you find the error. Working absolutely fine for the stock 3 problem. here runtime error (1)
The problem is pretty tough! (3)
CPP one test case not accepting (5)
Can someone clarify where am I going wrong? (1)
Intuition for this problem (1)