A Study in Pink
CodeChefOpen on judge ↗
Sherlock Holmes is chasing a cab driver and he(Holmes) is carrying a gun with which he can shoot the . cabbie. Both Sherlock Holmes and the cab driver are initially in the first cell (1,1) and the Jail is at (N,M). Sherlock Holmes will shoot the cab exactly one time whenever they both are in same cell i.e. whenever they are in the same cell, the strength of the car reduces by 1. The cabdriver’s ca
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