반응형
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 |