Check given matrix is magic square or not
Given a matrix, check whether it’s Magic Square or not. A Magic Square is a n x n matrix of distinct element from 1 to… Read More »
Given a matrix, check whether it’s Magic Square or not. A Magic Square is a n x n matrix of distinct element from 1 to… Read More »
George cantor named mathematician gave a proof that set of rational numbers is enumerable. We don’t have to proof it over here rather we have… Read More »
Given an n x n square matrix, count all rows and columns whose sum is equal to the sum of any principal diagonal or secondary… Read More »
You have given an integer matrix with odd dimensions. Find the square of the diagonals elements on both sides. Examples: Input : 1 2 3… Read More »
Given the dimension of the matrix R(rows) * C(column) the task is to find which type of matrix is representing by the given dimension. Examples:… Read More »
Given a matrix, sort the rows of matrix in ascending order followed by sorting the columns in descending order. Examples : Input : a[3][3] =… Read More »
A matrix is said to be singular if the determinant of the matrix is 0 otherwise it is non-singular . Examples: Input : 0 0… Read More »
We are given a matrix, we need to check whether it is an orthogonal matrix or not. An orthogonal matrix is a square matrix and… Read More »
Given a integer matrix of odd dimensions (3 * 3, 5 * 5). then the task is to find the sum of the middle row… Read More »
Two common ways of traversing a matrix are row-major-order and column-major-order. Row Major Order : When matrix is accessed row by row. Column Major Order… Read More »
Given a matrix of size N*M, and a number K. We have to rotate the matrix K times to the right side. Examples: Input :… Read More »
Given a number n then print number in Digital form. Examples : Input : 5 Output : – – | – – | – -… Read More »
Given a square matrix, swap the element of major and minor diagonals. Major Diagonal Elements of a Matrix : The Major Diagonal Elements are the… Read More »
Given n, of a n x n chessboard, find the proper placement of queens on chessboard. Previous Approach : N Queen Recommended: Please try your… Read More »
Given a matrix, print it in Reverse Wave Form. Examples : Input : 1 2 3 4 5 6 7 8 9 10 11 12… Read More »