Given an N×N matrix mat[][] and an integer K, the task is to search K in mat[][] and if found return its indices. Examples: Input:… Read More

# Category Archives: Matrix

Given a matrix of size N * N containing only 0s and 1s, where 0 represents white and 1 represents black. The task is to… Read More

Given a matrix mat of N*N (N is a perfect square|) and two points x and y, the task is to return all the elements of the… Read More

Given a binary matrix Mat[][] of size N*N, the task is to find the minimum number of flips to be performed such that the matrix… Read More

A Data Structure organizes and stores data in a computer so that we can perform operations on the data more efficiently. There are many diverse… Read More

Given two numbers M and N denoting the number of rows and columns of a matrix A[] where A[i][j] is the sum of i and… Read More

Consider a series of buildings in a 2-D square plot with different heights and only those buildings are chargeable that have a clear and straight… Read More

Given a matrix mat[][] of size N*M and the destination (x, y) to be reached from (0, 0), the task is to find if you… Read More

Given two integers N and M denoting a matrix of size N*M, the task is to form a matric following the below criteria and make… Read More

Given an N*M matrix Mat[][] containing all distinct integers, the task is to find the minimum area of the matrix (r*c, where 1 ≤ r… Read More

Given a 2D matrix of size N x M and Q queries where each query represents a coordinate (x, y) of the matrix, the task… Read More

A Two Dimensional array of pointers is an array that has variables of pointer type. This means that the variables stored in the 2D array… Read More

Given a two-dimensional integer array arr[ ][ ], return all the adjacent elements of a particular integer whose position is given as (x, y). Adjacent… Read More

Hadamard matrix is a square matrix with the unique property that any two of its rows are orthogonal. In geometric terms that means that the… Read More

Given an array A[], the task is to find the circulant matrix made by this array. A circulant matrix is a square matrix of order… Read More