Skip to content

Tag Archives: chessboard-problems

Given an N×N Matrix Mat[][] of N rows and N columns. There is exactly one Queen on the chessboard and the cell that is under… Read More
Given an 8 X 8 matrix of characters ‘*’ and ‘K’  as a chessboard in which K represents the position of the King and the… Read More
Given a matrix of size N * N containing only 0s and 1s, where 0 represents white and 1 represents black. The task is to… Read More
Given three integers N, R, and C representing an N*N chessboard and the position (R, C) where the rook and the bishop is placed. The… Read More
Given an integer N and a chess knight placed in mobile keypad. The task is to count the total distinct N digit numbers which can… Read More
Given pair of coordinates of K rooks on an N X N chessboard, the task is to count the number of rooks that can attack… Read More
Given a N x N chessboard and the position of X bishops on it, the task is to calculate the count of pairs of bishops… Read More
Given two integers N and M representing a N x M chessboard, the task is to find the maximum number of squares that the bishop… Read More
Given an integer N, the task is to print all the unique combinations of putting N pieces in an NxN board. Note: Print (“*”) for… Read More
Given a N x N chessboard with a Knight initially standing on the Xth row and Yth column, the task is to print all possible… Read More
Given the current position of a Knight as (i, j), find the count of different possible positions visited by a knight after N moves (in… Read More
Given integers current_row and current_col, representing the current position of a Rook on an 8 × 8 chessboard and two more integers destination_row and destination_col… Read More
Given a 2D array knights[][] of size N * 2, with each row of the form { X, Y } representing the coordinates of knights,… Read More
Given a 2D array queens[][] consisting of coordinates of N queens in an 8 * 8 chessboard and an array king[] denoting the coordinates of… Read More
Given two integers N and M denoting the dimensions of a chessboard, and two integers X and Y denoting the King’s position, i.e. the cell… Read More

Start Your Coding Journey Now!