## Number of ways to make exactly C components in a 2*N matrix

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 »

- Largest Square in a Binary Matrix with at most K 1s for multiple Queries
- Real-time application of Data Structures
- 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
- Check whether a Matrix is a Latin Square or not
- Puzzle | Connect 9 circles each arranged at center of a Matrix using 3 straight lines
- Maximum of all distances to the nearest 1 cell from any 0 cell in a Binary matrix
- Return an array of anti-diagonals of given N*N square 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
- 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
- Maximum size square Sub-Matrix with sum less than or equals to K
- C program to implement Adjacency Matrix of a given Graph
- Encryption and Decryption of String according to given technique
- Sort the major diagonal of the matrix
- Leftmost Column with atleast one 1 in a row-wise sorted binary matrix
- Check if any King is unsafe on the Chessboard or not
- Minimize count of divisions by D to obtain at least K equal array elements
- Check if cells numbered 1 to K in a grid can be connected after removal of atmost one blocked cell
- Java Program to Multiply two Matrices of any size
- Generalized Fibonacci Numbers
- Count all square sub-matrix with sum greater than the given number S
- Find the product of sum of two diagonals of a square Matrix

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 »

Given an N * M matrix and a starting position (X, Y) of a virus, the task is to find out the number of covered… Read More »

Given a matrix mat[][] of dimensionM*N, the task is to find the total maximum possible value must be increased to each cell(say mat[i][j]) such that… Read More »

Given a matrix mat[][] with N rows and M columns. The task is to find the minimum number of changes required in the matrix such… Read More »

Given a matrix mat[][], the task is to check if the row-major order path of the matrix is a palindrome or not. Examples: Input: mat[][]… Read More »

Given three integers N, M and K, where N and M are the dimensions of the matrix and K is the maximum possible steps, the… Read More »

Given a matrix mat[][] and an integer X, the task is to find the minimum number of operations required to reach from . In each… Read More »

Content Removed. Please refer Matrix Category for such problems.t My Personal Notes arrow_drop_up Save