## Rotate a Matrix by 180 degree

Given a square matrix the task is that we turn it by 180 degrees in anti-clockwise direction without using any extra space. Examples : Input… 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
- Minimum time required to rot all oranges | Dynamic Programming
- Count number of ways to reach a given score in a Matrix
- Maximum sum path in a matrix from top to bottom and back
- Minimum steps required to reach the end of a matrix | Set 2
- Sum of bitwise AND of all submatrices
- Find the sum of the diagonal elements of the given N X N spiral matrix
- Rat in a Maze Problem when movement in all possible directions is allowed
- Sum of Bitwise-OR of all Submatrices
- XOR of XORs of all sub-matrices
- Find minimum steps required to reach the end of a matrix | Set - 1
- How to read a Matrix from user in Java?
- Count the total number of squares that can be visited by Bishop in one move
- Find minimum steps required to reach the end of a matrix | Set 2
- Number of submatrices with OR value 1
- Number of submatrices with all 1s
- Maths behind number of paths in matrix problem
- Find the number of paths of length K in a directed graph
- Check if the robot is within the bounds of the grid after given moves
- Count possible moves in the given direction in a grid
- XOR of a submatrix queries
- 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
- 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
- Find a way to fill matrix with 1's and 0's in blank positions

Given a square matrix the task is that we turn it by 180 degrees in anti-clockwise direction without using any extra space. Examples : Input… Read More »

We have one 2D array, filled with zeros and ones. We have to find the starting point and ending point of all rectangles filled with… Read More »

Given an n x n matrix, where every row and column is sorted in non-decreasing order. Print all elements of matrix in sorted order. Examples:… Read More »

Given Binary matrix. Task is count all zeros which are surrounded by one (may not be immediate neighbor). Note: here we are only taking four… Read More »

Given a 2D array, find the minimum sum submatrix in it. Examples: Input : M[][] = {{1, 2, -1, -4, -20}, {-8, -3, 4, 2,… Read More »

Aim : Program to compute the sum of two matrices and then print it in Python. Examples: Input : X= [[1,2,3], [4 ,5,6], [7 ,8,9]]… Read More »

Matrix multiplication is an operation that takes two matrices as input and produces single matrix by multiplying rows of the first matrix to the column… Read More »

Given a 2-D matrix, we need to find sum of all elements present in matrix ? Examples: Input : arr = [[1, 2, 3], [4,… Read More »

Conways’s Game Of Life is a Cellular Automation Method created by John Conway. This game was created with Biology in mind but has been applied… Read More »

Given an n x n matrix containing all the numbers in the range 0 to n2-1. The problem is to calculate the total energy required… Read More »

Given a n × m binary matrix, count the number of sets where a set can be formed one or more same values in a… Read More »

Given a sorted matrix of size n*n. Calculate the mean and median of the matrix . Examples: Input : 1 2 3 4 5 6… Read More »

In linear algebra, a matrix decomposition or matrix factorization is a factorization of a matrix into a product of matrices. There are many different matrix… Read More »

In numerical analysis and linear algebra, LU decomposition (where ‘LU’ stands for ‘lower upper’, and also called LU factorization) factors a matrix as the product… Read More »

Given a matrix of N*M order. Find the shortest distance from a source cell to a destination cell, traversing through limited cells only. Also you… Read More »