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


About the Best Time to Buy and Sell Stock atmost : Unsolved category (1)
C++ solution throws bad alloc (6)
Imp suggestion if giving runtime error/out of bound (2)
Can you find the error. Working absolutely fine for the stock 3 problem. here runtime error (2)
Interface sucks (1)
O(n2*k) or worst case O(n3) (As k can reach 10^9) but still TLE (2)
Problem with testcases (1)
What's wrong with this approach? (Own intuition) (2)
Why is the giving Time limit, its O(n*k) Time complexity (2)
Tle due to max func (1)
Wrong test case for this problem (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)