← All problemsSign in

Problem 3

A lame knight is located at the bottom-left corner of a height(H) x width(W) chessboard. Unlike a healthy knight, a lame knight can only make moves where he goes to the right. The only possible moves are: 1. 2 cells up, 1 cell right; 2. 1 cell up, 2 cells right; 3. 1 cell down, 2 cells right; 4. 2 cells down, 1 cell right. The knight will make one trip, and he wants to maximize the number o

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