## Check if Matrix remains unchanged after row reversals

Given a NxN matrix. The task is to check if after reversing all of the rows of the given Matrix, the matrix remains same or… Read More »

- Sum of all Submatrices of a Given Matrix
- 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
- Minimum time required to rot all oranges | Dynamic Programming
- Rat in a Maze Problem when movement in all possible directions is allowed
- 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
- 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
- Maths behind number of paths in matrix problem
- Count possible moves in the given direction in a grid
- Check if the robot is within the bounds of the grid after given moves
- XOR of a submatrix queries
- Find maximum path sum in a 2D matrix when exactly two left moves are allowed
- Find the number of paths of length K in a directed graph
- Find row with maximum and minimum number of zeroes in given Matrix
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- Find the original matrix when largest element in a row and a column are given

Given a NxN matrix. The task is to check if after reversing all of the rows of the given Matrix, the matrix remains same or… Read More »

Given task is to read a matrix from the user. The size and number of elements of matrices are to be read from the keyboard.… Read More »

The problem is to count all the possible paths from top left to bottom right of an m*n matrix with the constraints that from each… Read More »

Given a binary grid of order r * c and an initial position. The task is to find the minimum distance from the source to… Read More »

Given a 2-D matrix mat[][] the task is count the number of connected components in the matrix. A connected component is formed by all equal… Read More »

Given a NxN matrix, the task is to find the sum of bit-wise OR of all of its rectangular sub-matrices. Examples: Input : arr[][] =… Read More »

Given a NxN matrix, the task is to find the sum of bit-wise AND of all of its rectangular sub-matrices. Examples: Input : arr[][] =… Read More »

Given a grid N x M size and initial position (X, Y) and a series of K moves. Each move contains 2 integers Dx and… Read More »

Given a N*N binary matrix, task is to find the count of rectangular sub-matrices with OR value 1. Examples: Input : arr[][] = {{0, 0,… Read More »

Given a ‘N*N’ matrix, the task is to find the XOR of XORs of all possible sub-matrices. Examples: Input :arr = {{3, 1}, {1, 3}}… Read More »

Given a N*N matrix containing only 0s and 1s, the task is to count the number of submatrices containing all 1s. Examples: Input : arr[][]… Read More »

Given an N * N matrix and q queries, each containing position of top-left and bottom-right corner of a rectangular sub-matrix, the task is to… Read More »

Given a NxN 2-D matrix, the task to find the sum of all the submatrices. Examples: Input : arr[] = {{1, 1}, {1, 1}}; Output… Read More »

Given a spirally sorted matrix with N * N elements and an integer X, the task is to find the position of this given integer… Read More »

Given the source point and the destination point of the path and two integers x and y. The task is to check whether it is… Read More »