Investment
CodeChefOpen on judge ↗
Problem: Investment Problem description. Captain Jack Sparrow, the notorious pirate, was having a bit of bad luck in his recent loots and was running out of money. So, he decided to try his luck in investment. He decided to invest in the Volatile Pirate Corporation, located in Tortuga. In this company, you are allowed to buy one unit of stock only one time and then sell it at a later date. C
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