Nayyab F.

asked • 05/27/21

it is the question of programming and i do not have enough knowledge to solve it so i am asking to you and i hope i will get best answer

Take a Boolean 2D array of 10X 10, where each row is sorted from the user, Find the row with the

maximum number of 1s.

Example:

Input matrix

0 1 1 1

0 0 1 1

1 1 1 1 // this row has maximum 1s

0 0 0 0

Output: 2

1 Expert Answer

By:

Scott P. answered • 05/27/21

Tutor
5.0 (130)

Experienced, patient computer/computer science tutor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.