##
Matrix Multiplication | Recursive
June 26, 2017

Given two matrices A and B. The task is to multiply matrix A and matrix B recursively. If matrix A and matrix B are not… Read More »

June 26, 2017

Given two matrices A and B. The task is to multiply matrix A and matrix B recursively. If matrix A and matrix B are not… Read More »

June 19, 2017

Prerequisite – Multidimensional Arrays in C / C++ Given a two dimensional array, Write a program to print lower triangular matrix and upper triangular matrix.… Read More »

June 10, 2017

Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More »

June 8, 2017

Given a rectangular grid of dimension 2 x n. We need to find out the maximum sum such that no two chosen numbers are adjacent,… Read More »

June 5, 2017

Given a n x n matrix. The problem is to find all the distinct elements common to all rows of the matrix. The elements can… Read More »

May 14, 2017

An element is a peak element if it is greater than or equal to its four neighbors, left, right, top and bottom. For example neighbors… Read More »

Given a sorted matrix mat[n][m] and an element ‘x’. Find position of x in the matrix if it is present, else print -1. Matrix is… Read More »

April 16, 2017

Given a matrix of n X n. The task is to calculate the absolute difference between the sums of its diagonal. Examples: Input : mat[][]… Read More »

Given a matrix of size n x n, find sum of the Zigzag sequence with the largest sum. A zigzag sequence starts from the top… Read More »

April 15, 2017

Given two values m and n, fill a matrix of size ‘m*n’ in spiral (or circular) fashion (clockwise) with natural numbers from 1 to m*n.… Read More »

April 11, 2017

Given a binary N x N matrix, we need to find the total number of matrix positions from which there is an endless path. Any… Read More »

April 10, 2017

Background: Following are the rules of Suduku for a player. In all 9 sub matrices 3×3 the elements should be 1-9, without repetition. In all… Read More »

April 3, 2017

Initially, there is a grid with some cells which may be alive or dead. Our task to generate the next generation of cells based on… Read More »

March 31, 2017

Given a positive integer N. Consider a matrix of N X N. No cell can be accessible from any other cell, except the given pair… Read More »

March 20, 2017

Given a 2D matrix, the task is that we find maximum sum of a hour glass. An hour glass is made of 7 cells in… Read More »