Find Largest Number in Matrix and Smallest in Row, Column

Given a matrix, find the largest number in each row and the smallest number in each column that is not 1. The input consists of two space-separated lists of numbers, where the first list represents th...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: