Find probability of selecting element from kth column after N iterations
Given a matrix M of order N*M where Mij represent the occurrence of j in row i. The task is to find the probability of… Read More »
Given a matrix M of order N*M where Mij represent the occurrence of j in row i. The task is to find the probability of… Read More »
Given a binary matrix of size NxN where 1 denotes that the number i can be converted to j, and 0 denotes it cannot be… Read More »
Given two matrices A and B of order p x q (or q X p) and r x s ( or s X r). The… Read More »
Given a number N denotes the total number of elements in a matrix, the task is to print all possible order of matrix. An order… Read More »
Given a matrix mat[][], the task is to count the number of rows in the matrix that consists of the same elements. Examples: Input: mat[][]… Read More »
Given a 2-D matrix mat[][] of size N * N, initially all the elements of the matrix are 0. A number of queries(M ranges) need… Read More »
Given a binary grid of order r * c and an initial position. The task is to find the minimum distance from the source to… Read More »
Given coordinates of 3 cells (X1, Y1), (X2, Y2) and (X3, Y3) of a matrix. The task is to find the minimum path which connects… Read More »
Given a string of length L. The task is to convert the string into a grid. No. of rows >= floor(√L) No. of columns <=… Read More »
Given an integer N, the task is to print the given pattern. Examples: Input: 3 Output: 1 2 4 3 5 7 6 8 9… Read More »
Given two matrices, the task is to multiply them. The size and number of elements of matrices are to be read from the keyboard. Examples:… Read More »
The problem is to print all the possible paths from top left to bottom right of an mXn matrix with the constraints that from each… Read More »
Given an N X M matrix, where ai, j = 1 denotes the cell is not empty, ai, j = 0 denotes the cell is… Read More »
Given an N X M matrix, where ai, j = 1 denotes the cell is not empty, ai, j = 0 denotes the cell is… Read More »
Given an array arr[] of strings of same length, the task is to count the number of columns to be deleted so that all the… Read More »