## Farthest distance of a 0 from the center of a 2-D matrix

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 »

- 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
- Find the sum of the diagonal elements of the given N X N spiral matrix
- Sum of Bitwise-OR of all Submatrices
- Find minimum steps required to reach the end of a matrix | Set - 1
- Sum of bitwise AND of all submatrices
- Number of shortest paths to reach every cell from bottom-left cell in the grid
- 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
- Count possible moves in the given direction in a grid
- 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
- Find the original matrix when largest element in a row and a column are given
- Number of ways to reach the end of matrix with non-zero AND value
- Find a way to fill matrix with 1's and 0's in blank positions
- Queries to find the last non-repeating character in the sub-string of a given string
- Find a sub matrix with maximum XOR

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 »

Given an Grid of integers. The task is to find total numbers of 3 x 3 (contiguous) Magic Square subgrids in the given grid. A… Read More »

Count the number of the cavity in the 2d matrix, a cavity is defined as all the surrounding number are greater than the mid number.… Read More »

Given a matrix of size n*n, print the matrix in the following pattern. Output: 1 2 5 3 6 9 4 7 10 13 8… Read More »

Given a matrix of integers, task is to find out number of positional elements. A positional element is one which is either minimum or maximum… Read More »

Given a Markov chain G, we have the find the probability of reaching the state F at time t = T if we start from… Read More »

Given a NxM matrix of integers containing duplicate elements. The task is to find the count of all majority occurring elements in the given matrix,… Read More »

Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all maximum occurring elements in the given matrix.… Read More »