D
D
Damian Dante2020-10-24 19:54:23
Arrays
Damian Dante, 2020-10-24 19:54:23

Arrange the array rows in ascending order of the number of identical elements in each row?

Write a program that reads n > 1 rows and m > 1 columns of a two-dimensional array (mnatricei) from the keyboard and then reads those n X m array elements from the keyboard.
Arrange the rows of the array in ascending order of the number of identical elements in each row.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2020-10-24
@wataru

This is a trivial task. What have you tried to do yourself? Were you able to read the array? Can you count how many identical elements are in a line? Can you call the sorting algorithm?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question