코드로 우주평화

Small enough? - Beginner 본문

나는 이렇게 학습한다/Algorithm & SQL

Small enough? - Beginner

daco2020 2022. 8. 3. 21:35

You will be given an array and a limit value. You must check that all values in the array are below or equal to the limit value. If they are, return true. Else, return false.

You can assume all values in the array are numbers.

 

Solution:

def small_enough(array, limit):
    return max(array) <= limit

 

 

'나는 이렇게 학습한다 > Algorithm & SQL' 카테고리의 다른 글

Count the Digit  (0) 2022.08.05
Descending Order  (0) 2022.08.05
Sort the odd  (0) 2022.08.02
Form The Minimum  (0) 2022.08.02
Make a function that does arithmetic!  (0) 2022.07.31