Min and Max
-
Practice>Python>Numpy>Min and Maxhackerrank.com 2019. 3. 13. 12:42
hackerrank.comMin and MaxProblem link : https://www.hackerrank.com/challenges/np-min-and-max/problemDifficulty : Easy TipJust understanding how to use numpy.min() numpy.max(), is enough to solve this problem Solution import numpy as np N, M = list(map(int, input().split(' '))) arr = np.array([input().split(' ') for _ in range(N)], int) arr2 = np.min(arr, axis = 1) print(np.max(arr2))