## Fill missing entries of a magic square

Given a 3X3 matrix mat with it’s left diagonal elements missing (set to 0), considering the sum of every row, column and diagonal of the… Read More »

- Minimum time required to rot all oranges | Dynamic Programming
- Rat in a Maze Problem when movement in all possible directions is allowed
- Minimum distance to the corner of a grid from source
- 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
- Count number of ways to reach destination in a maze
- Number of shortest paths to reach every cell from bottom-left cell in the grid
- Find the sum of the diagonal elements of the given N X N spiral matrix
- Find minimum steps required to reach the end of a matrix | Set - 1
- How to read a Matrix from user in Java?
- Find the number of paths of length K in a directed graph
- Find minimum steps required to reach the end of a matrix | Set 2
- Print a given matrix in spiral form using direction tracking method
- Maths behind number of paths in matrix problem
- 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 position of the given row in a 2-D array
- Check if the robot is within the bounds of the grid after given moves
- Check if matrix can be converted to another matrix by transposing square sub-matrices
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- Number of connected components in a 2-D matrix of strings
- Number of ways to reach the end of matrix with non-zero AND value
- 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
- Find a sub matrix with maximum XOR
- Queries to find the last non-repeating character in the sub-string of a given string
- Find if a binary matrix exists with given row and column sums
- Find the number of cells in the table contains X
- Paths from entry to exit in matrix and maximum path sum

Given a 3X3 matrix mat with it’s left diagonal elements missing (set to 0), considering the sum of every row, column and diagonal of the… Read More »

Given two matrix A[][] and B[][] of same order m*n. The task is to find the intersection of both matrix as C, where: Cij =… Read More »

Given a 2-D Matrix and an integer ‘K’, the task is to predict the matrix after ‘K’ iterations given as follows: An element 1 in… Read More »

Given a matrix of distinct elements. The task is to sort the rows of matrix in descending order followed by sorting the columns in ascending… Read More »

Given an array of three element. The task is to construct a matrix of order 3*3 by using all three rotation of array as row… Read More »

Given an N*N matrix. The task is to convert the elements of diagonal of a matrix to 0. Examples: Input: mat[][] = {{ 2, 1,… Read More »

Given a matrix, the task is to find the maximum element of each column. Examples: Input: [1, 2, 3] [1, 4, 9] [76, 34, 21]… Read More »

You are given a matrix of order N*N. The task is to find the resultant matrix by adding the mirror image of given matrix with… Read More »

Given a matrix, the task is to find the minimum element of each row and each column. Examples: Input: [1, 2, 3] [1, 4, 9]… Read More »

Given an integer square matrix of odd dimensions (3 * 3, 5 * 5). The task is to find the product of the middle row… Read More »

Given a n*m grid and the position of some poles to be painted in the grid, the task is to find the minimum cost to… Read More »

Given a N*N matrix. The task is to convert the matrix to a diagonal matrix. That is to change the values of the non diagonal… Read More »

Given a string str and a matrix mat[][] of lowercase English alphabets, the task is to find whether the string str appears in the matrix… Read More »

Given a N X N matrix consisting of characters. Also given are Q queries, where each query contains a co-ordinate (X, Y). For every query,… Read More »

Given a square matrix of odd order N. The task is to find the side-length of the largest square formed in the matrix. A square… Read More »