## Print the matrix diagonally downwards

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 »

- 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 a given score in a Matrix
- Count number of ways to reach destination in a maze
- Maximum sum path in a matrix from top to bottom and back
- Minimum steps required to reach the end of a matrix | Set 2
- Number of shortest paths to reach every cell from bottom-left cell in the grid
- Find minimum steps required to reach the end of a matrix | Set - 1
- Find the sum of the diagonal elements of the given N X N spiral matrix
- Find the number of paths of length K in a directed graph
- Find minimum steps required to reach the end of a matrix | Set 2
- Print a given matrix in spiral form using direction tracking method
- Count number of ways to reach destination in a Maze using BFS
- Find maximum path sum in a 2D matrix when exactly two left moves are allowed
- Find row with maximum and minimum number of zeroes in given Matrix
- Find the position of the given row in a 2-D array
- Find a sub matrix with maximum XOR
- Check if the robot is within the bounds of the grid after given moves
- Number of ways to reach the end of matrix with non-zero AND value
- Check if a cycle of length 3 exists or not in a graph that satisfy a given condition
- Find the original matrix when largest element in a row and a column are given
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- Find a way to fill matrix with 1's and 0's in blank positions
- Queries to find the last non-repeating character in the sub-string of a given string
- Find the number of p-sided squares in a grid with K blacks painted
- Find if a binary matrix exists with given row and column sums
- Maze With N doors and 1 Key
- Find the number of cells in the table contains X
- Paths from entry to exit in matrix and maximum path sum
- Check if a number from every row can be selected such that xor of the numbers is greater than zero

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 »

Given a matrix of order m*n, the task is to find out the sum of each row and each column of a matrix. Examples: Input:… Read More »

Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all even occurring elements in the given matrix.… Read More »

Given an square array A of integers of size NxN. The task is to find the minimum sum of a falling path through A. A… Read More »

Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all minimum occurring elements in the given matrix.… Read More »

Given a 2-D array of size N*M where, . The task is to find the maximum value achievable by a + shaped pattern. The elements… Read More »

Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given matrix.… Read More »

Given an infinite chessboard with the same rules as that of chess. Also given are N knights coordinates on the infinite chessboard(-10^9 <= x, y… Read More »

Given a number n as the size of the matrix, the task is to print a spiral pattern in 2D array of size n. Examples:… Read More »

Given a NxM matrix and a difference K. The task is to check if a pair with the given absolute difference exists in the matrix… Read More »

Given a NxM matrix and a product K. The task is to check if a pair with the given product exists in the matrix or… Read More »