## Print Lower Hessenberg matrix of order N

Given a positive integer N, the task is to print the Lower Hessenberg matrix of order N which includes any one-digit random positive integer as… Read More »

- Minimum steps to reach any of the boundary edges of a matrix | Set 1
- Minimum steps to reach any of the boundary edges of a matrix | Set-2
- Print matrix in snake pattern from the last column
- Sum of all Submatrices of a Given Matrix
- Minimum distance to the end of a grid from source
- A variation of Rat in a Maze : multiple steps or jumps allowed
- Minimum steps required to convert X to Y where a binary matrix represents the possible conversions
- Print numbers in matrix diagonal pattern
- Print all paths from top left to bottom right in a matrix with four moves allowed
- Find sub-matrix with the given sum
- Unique paths covering every non-obstacle block exactly once in a grid
- Search element in a Spirally sorted Matrix
- Minimum distance to the corner of a grid from source
- Count number of ways to reach a given score in a Matrix
- Sum of bitwise AND of all submatrices
- Maximum sum path in a matrix from top to bottom and back
- Print matrix in zig-zag fashion from the last column
- Find the sum of the diagonal elements of the given N X N spiral matrix
- XOR of XORs of all sub-matrices
- Sum of Bitwise-OR of all Submatrices
- Minimum operations of given type to make all elements of a matrix equal
- Count the total number of squares that can be visited by Bishop in one move
- Maximum bishops that can be placed on N*N chessboard
- Number of submatrices with OR value 1
- Minimum steps required to reach the end of a matrix | Set 2
- Number of submatrices with all 1s
- Element in a matrix starting from which anti-clockwise traversal ends at the last element
- XOR of a submatrix queries
- Check if the robot is within the bounds of the grid after given moves
- Find probability of selecting element from kth column after N iterations

Given a positive integer N, the task is to print the Lower Hessenberg matrix of order N which includes any one-digit random positive integer as… Read More »

Given a positive integer N, the task is to print the Upper Hessenberg matrix of order N which includes any one-digit random positive integer as… Read More »

Given an array Row[] of size R where Row[i] is the sum of elements of the ith row and another array Column[] of size C… Read More »

Given a square matrix mat[][] of size n * n. The task is to print all the elements which lie on the super-diagonal of the… Read More »

Given a square matrix mat[][] of size n * n. The task is to print all the elements which lie on the sub-diagonal of the… Read More »

Given some rules to generate an N * N matrix mat[][] and two integers R and C, the task is to find the element at… Read More »

Given a 2D matrix containing only zeroes and ones, where each row is sorted. The task is to find the row with the maximum number… Read More »

Given an N * M matrix mat[][] which consists of two types of characters ‘.’ and ‘_’. The task is to fill the matrix in… Read More »

Given a 2D matrix arr[][] of dimensions N * M where N is number of rows and M is number of columns.The task is to… Read More »

Given a maze which is a N * N grid grid[][]. Every cell of the maze contains either the number 1, 2 or 3 which… Read More »

Given a 2d-matrix mat[][] consisting of positive integers, the task is to find the maximum score we can reach if we have to go to… Read More »

Given an M x N matrix mat[][]. The task is to count the number of good cells in the matrix. A cell will be good… Read More »

Given a string str, the task is to answer Q queries where every query consists of two integers L and R and we have to… Read More »

Problem Given a square matrix of side N we have to find a submatrix such that bitwise XOR of its elements is maximum, and we… Read More »

Given two integers N and M, the task is to print an N x M matrix such that each row and column contain all the… Read More »