Traverse the matrix in Diagonally Bottum-Up fashion using Recursion
Given a matrix mat[][] of size N x N, the task is to traverse the matrix Diagonally in Bottom-up fashion using recursion. Diagonally Bottum-up Traversal:… Read More »
Given a matrix mat[][] of size N x N, the task is to traverse the matrix Diagonally in Bottom-up fashion using recursion. Diagonally Bottum-up Traversal:… Read More »
Given a matrix mat[][] and an integer K, the task is to find the maximum neighbor within an absolute distance of K for each element… Read More »
Given a matrix mat[][] and two integers K and S, the task is to count all K x K sub-matrix such that the sum of… Read More »
Given a binary matrix mat[][] containing 0’s and 1’s. Each row of the matrix is sorted in the non-decreasing order, the task is to find… Read More »
Given two arrays A[] and B[], and an integer K, the task is to find the number of ways to select two subarrays of the… Read More »
Given two matrices A and B of size M x N, the task is to concatenate them into one matrix. Concatenation of matrix: The process… Read More »
Given a matrix of N * M containing {0, 1, #}. The task is to find the maximum value of strength based on following rules:… Read More »
Given a Matrix of size N*N filled with 1‘s and 0‘s, the task is to find the maximum distance from a 0-cell to its nearest… Read More »
Given a 2D grid arr[][] of ‘W’ and ‘L’ where ‘W’ denotes water and ‘L’ denotes land, the task is to find the minimum number… Read More »
Given a matrix startMatrix and another matrix finalMatrix, the task is to check if startMatrix can be converted to finalMatrix by column exchanges and a… Read More »
Given a square matrix of size N*N, return an array of its anti-diagonals. For better understanding let us look at the image given below: Examples:… Read More »
Given a matrix of size N x M, the task is to print the elements of the row whose product has a maximum count of… Read More »
Given a Matrix arr[][] of size MxN having positive integers and a number K, the task is to find the size of largest square sub-matrix… Read More »
Given a square matrix mat consisting of integers of size NxN, the task is to calculate the product between the sums of its diagonal. Examples:… Read More »
Given a square matrix of size N x N, the task is to check if it is Latin square or not. A square matrix is… Read More »