You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given an 8*8 empty chessboard in which a knight is placed at a position (X, Y). Your task is to find the number of positions in the chessboard knight can jump into in a single move .
Note:- Rows and Columns are numbered through 1 to N.
Input:-
Knight() that take integers X and Y as arguments.
Constraints:-
1 <= X <= 8
1 <= Y <= 8
Output:-
Return the number of positions Knight can jump into in a single move.