Tony and Stocks
CodeChefOpen on judge ↗
Tony is interested in Wayne tech stocks. Before buying the shares he gathered Wayne share price for past $N$ days and was analyzing when he got Steve call for emergency Avengers meeting. Before leaving he asked JARVIS to tell him the maximum profit that could have been attained from single share in past $N$ days. Can you tell the answer given by JARVIS ? ###Input: - First line will conta
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