rotate a 2D matrix by angle 180
Write a C program to Transpose 2 Matrices and find their product
A n*n matrix contains 1's and 0's . write a algorithm to print a sub matrix that contains only 1's and it should contains maximum number of 1's compare to other sub matrix contains only 1's... for example INPUT: 0 1 1 0 0 1 1 0 1 0 1 1 OUTPUT: 11 11
algo for splitting a matrix of order 2^k ,k>=1,into 4 submatrices (say a1,a2,a3,a4)such that elements of A1>A2>A3>A4
Write an algorithm to print matrix multiplication of two square matrices such that they are represented in linked list. ie, if square matrices are of size 3*3 then the lists are a11->a12->a13->a21->...->a33 and b11->b12->b13->b21->...->b33. output should be a third linked list.
ex: 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 8 9
it has print as 1,2,3,4,5,0,5,9,8,8,7,6....
You are given a n*n matrix.Every cell of the matrix contain some value (positive). You are currently standing at (0,0) and you have to go to right most and botom most cell ((n-1)*(n-1)) You can move either right or down.
Q1. Find the most optimal path.
Q2. Find the second most optimal path.
Q3. Find the kth most optimal path.
there is a m*n array of integrs, you have to traverse it spirally. e.g 1 2 3 4 5 6 7 8 9 0 1 2 result : 1,2,3,4,8,2,1,0,9,5,6,7
Image you have a square matrix, where each cell is filled with either black or white. Design an algorithm to find the maximum subsquare such that all four borders are filled with black pixels.
RSS link for this tag
You must log in to post.
Register or log in:
Lost Password?