## Count all the columns in a matrix which are sorted in descending

Given a matrix mat[][], the task is to count the number of columns that are sorted in descending. Examples: Input: mat[][] = {{1, 3}, {0,… Read More »

- Minimum time required to rot all oranges | Dynamic Programming
- Rat in a Maze Problem when movement in all possible directions is allowed
- Count number of ways to reach destination in a maze
- Number of shortest paths to reach every cell from bottom-left cell in the grid
- Count number of ways to reach destination in a Maze using BFS
- Find the number of paths of length K in a directed graph
- Print a given matrix in spiral form using direction tracking method
- Maze With N doors and 1 Key
- Implementation of BFS using adjacency matrix
- Find the position of the given row in a 2-D array
- Check if a cycle of length 3 exists or not in a graph that satisfy a given condition
- Find the number of p-sided squares in a grid with K blacks painted
- Check if the rows of a binary matrix can be made unique by removing a single column
- Find if a binary matrix exists with given row and column sums
- C++ program to Convert a Matrix to Sparse Matrix
- Find the number of cells in the table contains X
- Largest sub-matrix with all equal elements
- Minimum number of steps to convert a given matrix into Diagonally Dominant Matrix
- Print Lower Hessenberg matrix of order N
- Find the element in the matrix generated by given rules
- Minimum steps required to convert the matrix into lower hessenberg matrix
- Print all the sub diagonal elements of the given square matrix
- Find the sum of elements of the Matrix generated by the given rules
- Find an N x N grid whose xor of every row and column is equal
- Find a Square Matrix such that sum of elements in every row and column is K
- Maximum perimeter of a square in a 2D grid
- Print all the super diagonal elements of the given square matrix
- Check if it is possible to move from (0, 0) to (X, Y) in exactly K steps
- Implementation of DFS using adjacency matrix
- Print Upper Hessenberg matrix of order N

Given a matrix mat[][], the task is to count the number of columns that are sorted in descending. Examples: Input: mat[][] = {{1, 3}, {0,… Read More »

Given a 4 x 4 matrix, the task is to interchange the elements of first and last columns and show the resulting matrix. Examples: Input:… Read More »

Given a matrix mat consisting of * and lowercase English alphabets, the task is to find the character which has the maximum number of *… Read More »

Given a square matrix mat[][] of odd dimensions, the task is to change the value of the middle most element of the matrix to the… Read More »

Given a square matrix of order n*n, find the smallest and largest elements from both diagonals of the given matrix. Examples: Input : matrix =… Read More »

Given a 3X3 matrix mat with it’s left diagonal elements missing (set to 0), considering the sum of every row, column and diagonal of the… Read More »

Given two matrix A[][] and B[][] of same order m*n. The task is to find the intersection of both matrix as C, where: Cij =… Read More »

Given a 2-D Matrix and an integer ‘K’, the task is to predict the matrix after ‘K’ iterations given as follows: An element 1 in… Read More »

Given a matrix of distinct elements. The task is to sort the rows of matrix in descending order followed by sorting the columns in ascending… Read More »

Given an array of three element. The task is to construct a matrix of order 3*3 by using all three rotation of array as row… Read More »

Given an N*N matrix. The task is to convert the elements of diagonal of a matrix to 0. Examples: Input: mat[][] = {{ 2, 1,… Read More »

Given a matrix, the task is to find the maximum element of each column. Examples: Input: [1, 2, 3] [1, 4, 9] [76, 34, 21]… Read More »

You are given a matrix of order N*N. The task is to find the resultant matrix by adding the mirror image of given matrix with… Read More »

Given a matrix, the task is to find the minimum element of each row and each column. Examples: Input: [1, 2, 3] [1, 4, 9]… Read More »

Given an integer square matrix of odd dimensions (3 * 3, 5 * 5). The task is to find the product of the middle row… Read More »