← All problemsSign in

Trick or Treat Speed Run

There's a Halloween Costume Party tonight at your friend's house and since you'll be going on foot, you figure that you might as well do some trick or treating on the way over. The party is starting soon, so there's no time to take detours and you want to maximize your take of candy. You will start at the upper left corner of an R x C grid of integers, with your friend's house at the bottom r

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