## Minimum element of each row and each column in a matrix

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 »

- 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
- Count number of ways to reach destination in a Maze using BFS
- Maze With N doors and 1 Key
- Implementation of BFS using adjacency matrix
- Check if a cycle of length 3 exists or not in a graph that satisfy a given condition
- Find the number of p-sided squares in a grid with K blacks painted
- Check if the rows of a binary matrix can be made unique by removing a single column
- C++ program to Convert a Matrix to Sparse Matrix
- Find the number of cells in the table contains X
- Largest sub-matrix with all equal elements
- Find the sum of elements of the Matrix generated by the given rules
- Find an N x N grid whose xor of every row and column is equal
- Find a Square Matrix such that sum of elements in every row and column is K
- Maximum perimeter of a square in a 2D grid
- Check if it is possible to move from (0, 0) to (X, Y) in exactly K steps
- Implementation of DFS using adjacency matrix
- Sum of the count of number of adjacent squares in an M X N grid
- Finding the converging element of the diagonals in a square matrix
- Program to print the Diagonals of a Matrix

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 »

Given a matrix of odd order mat, the task is to find the farthest distance of a 0 from the center of the matrix. Distance… Read More »

Given a matrix of order n*n, the task is to find the maximum value of |i-j| such that Aij = 0. Given matrix must contain… Read More »

Given four integers row, col, x and y where row and col are the number of rows and columns of a 2-D Matrix and x… Read More »

Given an integer N as input, the task is to print the Magical Pattern as given below: N . . 3 2 1 2 3… Read More »

Given a Matrix, the task is to find the inverse of this Matrix using the Gauss-Jordan method. What is matrix? Matrix is an ordered rectangular… Read More »

Given a square matrix mat every element of which is either 0 or 1. A value 1 means connected and 0 means not connected. The… Read More »

Given four integers x1, y1 and x2, y2 which represent two locations in an infinite 2D-Matrix, the task is to find whether it is possible… Read More »

Given an integer ‘K’ and a row-wise sorted 2-D Matrix i.e. the matrix has the following properties: Integers in each row are sorted from left… Read More »