Обсуждения
print(min(1, 2, 3, 4, 0, 2, 1))
print(max([1, 4, 9, 2, 5, 6, 8]))
print(abs(-99))
print(abs(42))
print(sum([1, 2, 3, 4, 5])) 1. What will be the output?
1.
>>> m = [[x, x + 1 , x + 2] for x in ran
a) [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
b) [[0, 1, 2], [1, 2, 3], [2, 3, 4]]
c) [1, 2, 3, 4, 5, 6, 7, 8, 9]
d) [0, 1, 2, 1, 2, 3, 2, 3, 4] Input: arr[] = {1, 2, 3, 4, 5, 5, 5, 5, 5, 2, 2, 1, 1}
Output: 5
Explanation:
The subarray (5, 5, 5, 5, 5} has
maximum lengt a =[ 1, 1, 2, 3, 5, 8, 19, 21, 34, 55, 89
] { 1, 2, 3, 4 {1, 5, 6, 7}, 5, 6, 3, 4}