← All problemsSign in

Dead Man Tales

We all have heard about adventures of Captain Jack Sparrow. This time he has got a map from Dead man of treasure on mountains. The mountains are of different heights so that treasure can be kept in between those mountains. Jack wants to know how much total treasure is hidden there. As usual Jack is drunk and is not able to calculate total treasure. So, you (Gibbs) helps him in this. Map is in 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