← All problemsSign in

Stock Market

You recently studied how the stock market works and you know that be fearful when others are greedy and greedy when others are fearful. So you decided to invest in the stock market during this ongoing geopolitical conflicts with X amount. You are just curious to calculate the amount you will be having after Y years assuming you get 100% of returns every year. The amount could be huge, so return t

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start