The bigger value in a matrix row
Posted
by marionmaiden
on Stack Overflow
See other posts from Stack Overflow
or by marionmaiden
Published on 2010-04-21T19:26:03Z
Indexed on
2010/04/21
19:33 UTC
Read the original article
Hit count: 268
How can I get the 2 biggers numbers of a matrix row?
If the matrix have a bigger number in other row, it can't be shown.
For example, let's suppose I have the following matrix
int mat[][] ={{1,2,3}{4,5,6}{7,8,9}};
if I search the 2 biggers numbers from the row 0, it should return me 1 and 2.
© Stack Overflow or respective owner