1.

If a matrix has 8 elements, what are the possible orders it can have? What if it has 5 elements?

Answer»

If a matrix is of order m x n elements, it has mn elements. So, if the matrix has 8 elements, we will find the ordered pairs m and n.

mn = 8

Then, ordered pairs m and n can be 

m x n be (8 x 1),(1 x 8),(4 x 2),(2 x 4) 

Now, if it has 5 elements 

Possible orders are (5 x 1), (1 x 5).



Discussion

No Comment Found

Related InterviewSolutions