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

# Tag Archives: chessboard-problems

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

Given an integers N such that there is a chessboard of size N*N and an array pos[][] of K pairs of integers which represent the… Read More

Given two integers N, M denoting N×M chessboard, the task is to count the number of ways a knight can reach (N, M) starting from… Read More

Given an integer N, the task is to construct a matrix M[][] of size N x N with numbers in the range [1, N^2] with… Read More