M
M
Mikhail Novanov2021-11-09 10:04:29
Java
Mikhail Novanov, 2021-11-09 10:04:29

Find the number of the last of the matrix rows containing the maximum number of identical elements?

Please help, I don't know how to solve this problem

Given an M × N integer matrix. Find the number of the last of its rows containing the maximum number of identical elements.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-11-09
@xez

1. Write a method that determines the number of identical elements in a string.
2. Collect information on the rows about the number of identical elements and find the rows with the maximum number.
3. Select the last of these lines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question