## Minimum number of points required to cover all blocks of a 2-D grid

Given two integers N and M. The task is to find the minimum number of points required to cover an N * M grid. A… Read More »

- Maximum sum path in a Matrix
- Construct a Doubly linked linked list from 2D Matrix
- Minimum cost to reach from the top-left to the bottom-right corner of a matrix
- Submatrix of given size with maximum 1's
- Program to reverse the rows in a 2d Array
- Check whether a Matrix is a Latin Square or not
- Real-time application of Data Structures
- Maximum of all distances to the nearest 1 cell from any 0 cell in a Binary matrix
- Find the count of mountains in a given Matrix
- Maximum size of square such that all submatrices of that size have sum less than K
- 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
- Minimum number of Water to Land conversion to make two islands connected in a Grid
- Leftmost Column with atleast one 1 in a row-wise sorted binary matrix
- Number of square matrices with all 1s
- Return an array of anti-diagonals of given N*N square matrix
- Check if cells numbered 1 to K in a grid can be connected after removal of atmost one blocked cell
- Largest Square in a Binary Matrix with at most K 1s for multiple Queries
- Java Program to Add two Matrices
- Traverse a given Matrix using Recursion
- Sort the major diagonal of the matrix
- Find the product of sum of two diagonals of a square Matrix
- Maximum size square Sub-Matrix with sum less than or equals to K
- Find Maximum Length Of A Square Submatrix Having Sum Of Elements At-Most K
- Largest row-wise and column-wise sorted sub-matrix
- Check if it is possible to get given sum by taking one element from each row
- Find sum of all Boundary and Diagonal element of a Matrix
- Encryption and Decryption of String according to given technique
- Find dependencies of each Vertex in a Directed Graph
- Minimum sprinklers required to water a rectangular park

Given two integers N and M. The task is to find the minimum number of points required to cover an N * M grid. A… Read More »

Given a 2D grid of size N x M. The task is to find the final direction after visiting every cell under given conditions. You… Read More »

Given a positive integer N, the task is to print an N × N zig-zag matrix consisting of numbers from 1 to N2, such that… Read More »

Given a matrix mat[][] of R rows and C columns. The task is to find the sum of all elements from the main diagonal which… Read More »

Given a binary grid[ ][ ] of size N*M, with each cell containing either 0 or 1, where 1 represents an alive cell and the… Read More »

Given a matrix A[][] of dimensions N*M, the task is to find the minimum number of moves required to traverse the entire matrix starting from… Read More »

Given a matrix A[][] of size N*M, the task is to check if the given matrix satisfies the following two conditions or not: Sum of… Read More »

Given two positive integers N and C. There is a 2*N matrix where each cell of the matrix can be colored in 0 or 1.… Read More »

Given an integer N, the task is to find the N-th Fibonacci numbers. Examples: Input: N = 3 Output: 2 Explanation: F(1) = 1, F(2)… Read More »

Given a matrix mat[][], the task is to check that the sum of the elements of the matrix is prime or not. Examples: Input: mat[][]… Read More »

Given a grid of size N*M consists of 0 and 1 only, the task is to find the length of longest connected 1s in the… Read More »

Given four positive integers M, N, X, and Y, the task is to count all the possible ways to reach from top left(i.e., (0, 0))… Read More »

Given an integer matrix mat [ ][ ] dimensions, the task is to find the largest possible square matrix from the given matrix with maximum… Read More »

Given a binary matrix mat[][] of size NxM and two integers X and Y, the task is to find the minimum number steps required to… Read More »

Given a matrix A[][] consisting of coordinates of N rectangles such that {A[i][0], A[i][1]} representing bottom left coordinate of rectangle and {A[i][2], A[i][3]} representing top… Read More »