Skip to content

sauravhathi/find-matrix-distinct-elements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

find-matrix-distinct-elements

Find distinct elements common to all rows of a matrix.

Using this website, you can find the distinct elements common to all rows of a matrix. You can select the size of the matrix and enter the elements of the matrix. The distinct elements common to all rows of the matrix will be displayed.

image

2x2 matrix

image

image

5x5 matrix

image

Matrix Size Options

image

Matrix is a two-dimensional array of numbers. Given a matrix, find all distinct elements common to all rows of the matrix. For example, consider the following matrix:

1 2 1 4 8
3 7 8 5 1
8 7 7 3 1
8 1 2 7 9

The output should be 1 and 8.