MathWorks Interview Question

Chess, reach a target square with knight

Interview Answer

Anonymous

Jul 14, 2021

Use backtracking with dp or "visited" array, complexity exponential, but grid size is 8x8.