## 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 »

- Real-time application of Data Structures
- Largest Square in a Binary Matrix with at most K 1s for multiple Queries
- Construct a Doubly linked linked list from 2D Matrix
- Flood Fill Algorithm
- Program to reverse the rows in a 2d Array
- Submatrix of given size with maximum 1's
- Puzzle | Connect 9 circles each arranged at center of a Matrix using 3 straight lines
- Return an array of anti-diagonals of given N*N square matrix
- Maximum of all distances to the nearest 1 cell from any 0 cell in a Binary matrix
- Check whether a Matrix is a Latin Square or not
- Maximum size of square such that all submatrices of that size have sum less than K
- Find the count of mountains in a given Matrix
- Find if there is a path between two vertices in a directed graph | Set 2
- Minimum number of Water to Land conversion to make two islands connected in a Grid
- Construct a Matrix of size NxN with values in range [1, N^2] as per given conditions
- Count of palindromic plus paths in a given Matrix
- Java Program to Add two Matrices
- Traverse a given Matrix using Recursion
- Encryption and Decryption of String according to given technique
- C program to implement Adjacency Matrix of a given Graph
- Maximum size square Sub-Matrix with sum less than or equals to K
- Check if any King is unsafe on the Chessboard or not
- Leftmost Column with atleast one 1 in a row-wise sorted binary matrix
- Sort the major diagonal of the matrix
- Minimize count of divisions by D to obtain at least K equal array elements
- Java Program to Multiply two Matrices of any size
- Check if cells numbered 1 to K in a grid can be connected after removal of atmost one blocked cell
- Count all square sub-matrix with sum greater than the given number S
- Generalized Fibonacci Numbers
- Find the product of sum of two diagonals of a square 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 »

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 »