0% found this document useful (0 votes)
13 views1 page

Matrics (2D) Array Zoho Samle Questions

The document outlines various matrix operations and algorithms, including methods for rotating a matrix, finding values in sorted matrices, printing elements in diagonal and spiral order, and checking for magic squares. It also discusses finding the transpose of a matrix, multiplying matrices, and identifying saddle points. Each operation is associated with specific time and space complexity requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views1 page

Matrics (2D) Array Zoho Samle Questions

The document outlines various matrix operations and algorithms, including methods for rotating a matrix, finding values in sorted matrices, printing elements in diagonal and spiral order, and checking for magic squares. It also discusses finding the transpose of a matrix, multiplying matrices, and identifying saddle points. Each operation is associated with specific time and space complexity requirements.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

matrix rotation method by 90 degree

2. Matrix n*n is given, where all elements in any individual row or column
are sorted. In such a matrix, we have to nd the position of a value in O(n)
Time Complexity
and O(1) Space Complexity

3. Given a matrix of M x N elements (M rows, N columns), Print all elements


of the matrix in diagonal order in Time Complexity O(m*n) and Space
Complexity O(1)

4. print matrix in spiral order without any extra space

5. Sorted matrix (All elements are in sorted) nd the given values in O(logn)
time

6. Find the transpose of a matrix

7. Multiplication of given matgrix

8. Magic Square Check:


Create a Java function to check if a given matrix is a magic square. A magic
square is a square matrix in which the sum of every row, column, and both
main diagonals is the same.

9. Saddle Point in a Matrix:


Write a Java function to nd and print the saddle point (minimum in its row
and maximum in its column) in a given matrix.

10 . Print all diagonals elements from given matrices


fi
fi
fi

You might also like