Z and their hustle
CodeChefOpen on judge ↗
K is a hardworking student who is passionate about their studies, but they also want to make some extra money to help with their expenses. K has decided to start a side hustle by investing in the stock market. To make informed investment decisions, K has collected information about the prices of a stock on each day in an array. The array contains n elements, where each element represents the pric
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start