Gold Rush
On the two dimensional co-ordinate plane, a mythical creature starts from the square $(1,1)$ and moves to the square $(N,M)$, using only down and right moves (that is, it can move from $(x, y)$ to $(x+1, y)$ or $(x, y+1)$). The creature drops a single gold coin on every square on its path (including $(1, 1)$ and $(N, M)$). Also, it chooses any path uniformly at random, out of all possible paths
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