Tag: KnightL on a Chessboard
KnightL on a Chessboard(HackerRank) – BFS
Problem Link: KnightL on a Chessboard KnightL is a chess piece that moves in an L shape. We define the possible moves of KnightL(a,b) as any movement from some position (x1,y1) to some (x2,y2) to some satisfying either of the following: Note that (a,b) and (b,a) allow for the same exact set of movements. For… Read more