## Sort Matrix in alternating ascending and descending order rowwise

Given an N x N matrix, our task is to print the row of the matrix in ascending and descending order alternatively. Examples: Input: 5… Read More »

- Largest Square in a Binary Matrix with at most K 1s for multiple Queries
- Real-time application of Data Structures
- Construct a Doubly linked linked list from 2D Matrix
- Flood Fill Algorithm
- Program to reverse the rows in a 2d Array
- Submatrix of given size with maximum 1's
- Check whether a Matrix is a Latin Square or not
- Puzzle | Connect 9 circles each arranged at center of a Matrix using 3 straight lines
- Maximum of all distances to the nearest 1 cell from any 0 cell in a Binary matrix
- Return an array of anti-diagonals of given N*N square matrix
- Find the count of mountains in a given Matrix
- Maximum size of square such that all submatrices of that size have sum less than K
- Find if there is a path between two vertices in a directed graph | Set 2
- Minimum number of Water to Land conversion to make two islands connected in a Grid
- Construct a Matrix of size NxN with values in range [1, N^2] as per given conditions
- Count of palindromic plus paths in a given Matrix
- Java Program to Add two Matrices
- Traverse a given Matrix using Recursion
- Maximum size square Sub-Matrix with sum less than or equals to K
- C program to implement Adjacency Matrix of a given Graph
- Encryption and Decryption of String according to given technique
- Sort the major diagonal of the matrix
- Leftmost Column with atleast one 1 in a row-wise sorted binary matrix
- Check if any King is unsafe on the Chessboard or not
- Minimize count of divisions by D to obtain at least K equal array elements
- Check if cells numbered 1 to K in a grid can be connected after removal of atmost one blocked cell
- Java Program to Multiply two Matrices of any size
- Generalized Fibonacci Numbers
- Count all square sub-matrix with sum greater than the given number S
- Find the product of sum of two diagonals of a square Matrix

Given an N x N matrix, our task is to print the row of the matrix in ascending and descending order alternatively. Examples: Input: 5… Read More »

A data structure is a particular way of organizing data in a computer so that it can be used effectively. In this article, the real-time… Read More »

Given an N x M matrix of integers, the task is to count the number of palindromic pluses in the array. Palindromic plus is formed… Read More »

Given N * M rectangular park having N rows and M columns, each cell of the park is a square of unit area and boundaries… Read More »

Given an N*N binary matrix arr[][], the task is to check if the matrix contains a square of at least size 2 x 2 whose… Read More »

Given a matrix board of characters and a string Word, the task is to check if Word exists on the board constructed from a sequence… Read More »

Given a directed graph containing N vertices and M edges, the task is to find all the dependencies of each vertex in the graph and… Read More »

Given an integer K and a matrix mat[][] containing 1 and 0, where 1 denotes the cell is filled and 0 denotes an empty cell.… Read More »

Given a binary matrix mat[][] consisting of 1s and 0s of dimension M * N, the task is to find the number of operations to… Read More »

Given a matrix grid[][] and two integers M and N, the task is to find the sum of cost of all possible paths from the… Read More »

Given three integers N, P and K, the task is to find the number of ways of painting K cells of 3 x N grid… Read More »

Given a matrix(mat[][]), which is sorted row and column-wise in increasing order. Two integers are given, L and R, our task is to count number… Read More »

Given a undirected Graph of N vertices 1 to N and M edges in form of 2D array arr[][] whose every row consists of two… Read More »

Given an odd number N which represents a grid of size N x N which is initially filled by coins, the task is to find… Read More »

Given a 2-D array of N rows and M columns and an integer K. The task is to find whether is it possible to take… Read More »