0688. Knight Probability in Chessboard
Description
**Input:** n = 3, k = 2, row = 0, column = 0
**Output:** 0.06250
**Explanation:** There are two moves (to (1,2), (2,1)) that will keep the knight on the board.
From each of those positions, there are also two moves that will keep the knight on the board.
The total probability the knight stays on the board is 0.0625.**Input:** n = 1, k = 0, row = 0, column = 0
**Output:** 1.00000ac
Last updated
