## Maximum sum path in a matrix from top to bottom

Consider a n*n matrix. Suppose each cell in the matrix has a value assigned. We can go from each cell in row i to a… Read More »

## Frequencies of even and odd numbers in a matrix

Given a matrix of order m*n then the task is to find the frequency of even and odd numbers in matrix Examples: Input : m… Read More »

## Program for Identity Matrix

Introduction to Identity Matrix : The dictionary definition of an Identity Matrix is a square matrix in which all the elements of the principal or… Read More »

## Number of elements greater than modified mean in matrix

Normally mean of matrix is the average of all elements present in matrix. Consider a modified mean as floor of mean of row-wise minimum and… Read More »

## Minimum jumps to reach last building in a matrix

Given a matrix containing an integer value, In which each cell of the matrix represents height of building. Find minimum jumps needed reach from First… Read More »

## Program to swap upper diagonal elements with lower diagonal elements of matrix.

Given a square matrix, swap upper diagonal elements of matrix with lower diagonal elements of matrix. Examples : Input: 2 3 5 6 4 5… Read More »

## Ways of filling matrix such that product of all rows and all columns are equal to unity

We are given three values , and where is number of rows in matrix, is number of columns in the matrix and is the number… Read More »

## Mirror of matrix across diagonal

Given a 2-D array of order N x N, print a matrix which is mirror of given tree across diagonal. We need to print the… Read More »

## Python program to multiply two matrices

Given two matrix the task is that we will have to create a program to multiply two matrices in python. Examples: Input : X =… Read More »

## Printing string in plus ‘+’ pattern in the matrix

Given a string, print it inside a matrix in such a way that a ‘plus’ is formed. Examples: Input: TOP Output: X T X T… Read More »

## Number of days until all chocolates become unhealthy

Pablo has square chocolate Box of size n x n in which a variety of healthy chocolates are present denoted by ‘H’ initially but he… Read More »

## Find if there is a rectangle in binary matrix with corners as 1

There is a given binary matrix, we need to find if there exists any rectangle or square in the given matrix whose all four corners… Read More »

## Print all n digit patterns formed by mobile Keypad

Given a number n. we need to print all N digit pattern formed by mobile Keypad. Note: we can move up, down, left, right from… Read More »

## Rotate a Matrix by 180 degree

Given a square matrix the task is that we turn it by 180 degrees in anti-clockwise direction without using any extra space. Examples : Input… Read More »

## Find all rectangles filled with 0

We have one 2D array, filled with zeros and ones. We have to find the starting point and ending point of all rectangles filled with… Read More »