## Count of all subsequences having adjacent elements with different parity

Given an array arr[] of size N, the task is to find the number of non-empty subsequences from the given array such that no two… Read More »

- Maximum sum path in a Matrix
- Construct a Doubly linked linked list from 2D 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
- 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
- Minimum number of operations required to set all elements of a binary matrix
- Leftmost Column with atleast one 1 in a row-wise sorted binary matrix | Set 2
- Java Program to Multiply two Matrices of any size

Given an array arr[] of size N, the task is to find the number of non-empty subsequences from the given array such that no two… Read More »

Given a matrix of size N x M and an integer X, the task is to find the number of sub-squares in the matrix with… Read More »

Given two integers N and M, the task is to find the numbers of ways to form a matrix of size N * M consisting… Read More »

Given a matrix mat[][] of size M*N, the task is to sort only the border elements of the matrix in the clockwise direction and print… Read More »

Given three integers R, C, N, and an array arr[] of size N. The task is to color all cells of a grid of R… Read More »

Given a Directed Graph and two vertices in it, check whether there is a path from the first given vertex to second. Example: Consider the… Read More »

Given a binary matrix V[][] of dimensions N * M, wherein each cell is either empty or blocked marked by a 0 and 1 respectively,… Read More »

Given an unweighted directed graph G as a path matrix, the task is to find out if the graph is Strongly Connected or Unilaterally Connected… Read More »

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 »