Problem Statement: Given a Matrix print the transpose of a matrix. Examples: Example 1: Input: mat[][] = 1 2 3
Continue readingCategory: Matrix
Matrix Addition in C
Problem Statement: Given two matrices add the value of the two matrices and print the resultant matrix. Example 1: Input:
Continue readingSpiral Traversal of Matrix
Problem Statement: Given a Matrix, print the given matrix in spiral order. Examples: Example 1: Input: Matrix[][] = { {
Continue readingMatrix Boundary Traversal
Problem Statement: Given a matrix, print only the boundary elements of the matrix. Boundary elements are the ones that are
Continue readingRotate Matrix anti-clockwise by 90 degree
Problem statement: Given a matrix, your task is to rotate matrix anti-clockwise by 90 degrees. Examples: Example 1: Input: {{1,2,3},
Continue readingTranspose a Matrix : Program 0(1) space
Problem statement: Transpose a Matrix. Given a matrix, your task is to find its transpose of the given matrix. Transpose:
Continue readingSet Matrix Zero
Problem Statement: Given a matrix if an element in the matrix is 0 then you will have to set its
Continue readingRotate Image by 90 degree
Problem Statement: Given a matrix, your task is to rotate the matrix 90 degrees clockwise. Note: Rotate matrix 90 degrees
Continue readingSearch in a sorted 2D matrix
Problem Statement: Given an m*n 2D matrix and an integer, write a program to find if the given integer exists
Continue reading