We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 608a462 + 32db8be commit b4e443aCopy full SHA for b4e443a
Maths/FindMax.py
@@ -1,8 +1,7 @@
1
# NguyenU
2
3
-import math
4
def find_max(nums):
5
- max = 0
+ max = nums[0]
6
for x in nums:
7
if x > max:
8
max = x
0 commit comments