## Count the total number of squares that can be visited by Bishop in one move

Given the position of a Bishop on an 8 * 8 chessboard, the task is to count the total number of squares that can be… Read More »

- Sum of all Submatrices of a Given Matrix
- A variation of Rat in a Maze : multiple steps or jumps allowed
- Find sub-matrix with the given sum
- Search element in a Spirally sorted Matrix
- Minimum distance to the corner of a grid from source
- Unique paths covering every non-obstacle block exactly once in a grid
- Count number of ways to reach a given score in a Matrix
- Maximum sum path in a matrix from top to bottom and back
- Sum of bitwise AND of all submatrices
- Find the sum of the diagonal elements of the given N X N spiral matrix
- Minimum steps required to reach the end of a matrix | Set 2
- Sum of Bitwise-OR of all Submatrices
- Minimum operations of given type to make all elements of a matrix equal
- XOR of XORs of all sub-matrices
- Find minimum steps required to reach the end of a matrix | Set - 1
- Count the total number of squares that can be visited by Bishop in one move
- Minimum time required to rot all oranges | Dynamic Programming
- How to read a Matrix from user in Java?
- Number of submatrices with OR value 1
- Find minimum steps required to reach the end of a matrix | Set 2
- Number of submatrices with all 1s
- Rat in a Maze Problem when movement in all possible directions is allowed
- Maths behind number of paths in matrix problem
- Check if the robot is within the bounds of the grid after given moves
- XOR of a submatrix queries
- Count possible moves in the given direction in a grid
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- Find maximum path sum in a 2D matrix when exactly two left moves are allowed
- Find row with maximum and minimum number of zeroes in given Matrix
- Find the original matrix when largest element in a row and a column are given

Given the position of a Bishop on an 8 * 8 chessboard, the task is to count the total number of squares that can be… Read More »

Given the position of a Bishop and a Pawn on a 8 * 8 chessboard, the task is to check whether the Bishop can take… Read More »

Given a matrix of size NxN. The task is to count the number of pair of indices (i, j) such that the sum of j-th… Read More »

Given an N * N board which is initially empty and a sequence of queries, each query consists of two integers X and Y where… Read More »

Given 9 elements in a 3 x 3 matrix where the value of diagonals are 0. We need to find the values in diagonal to… Read More »

Given a grid grid[][] with 4 types of blocks: 1 represents the starting block. There is exactly one starting block. 2 represents the ending block.… Read More »

Given a N x M matrix which represents the number of rows and number of columns respectively. Each cell of a matrix is occupied by… Read More »

Given an integer K and a matrix of N rows and M columns, the task is to find the minimum number of operations required to… Read More »

Given a NxN matrix and an integer X. The task is to remove X rows and X columns from the NxN matrix. Remove first X… Read More »

Given a matrix mat[][] containing the characters [1 – 9], P and * where P is a person and * is an empty space. An… Read More »

Given an integer X and a square matrix mat[][], the task is to remove the first X rows and columns from the given matrix and… Read More »

Given a Character matrix as input, the task is to check whether all the enemies are killed or not based on below conditions: 1. The… Read More »

Given a matrix mat[][] containing the characters Z, P and * where Z is a zombie, P is a plant and * is a bare… Read More »

A variation of rat in a maze. You are given an N * N 2-D matrix shaped maze (let’s call it M), there is a… Read More »

Given a matrix mat[][], the task is to print the sum of the columns where the first element is odd. Examples: Input: mat[][] = {… Read More »