Skip to content

Commit b4e443a

Browse files
committed
Merge branch 'master' of https://github.com/TheAlgorithms/Python
2 parents 608a462 + 32db8be commit b4e443a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Maths/FindMax.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# NguyenU
22

3-
import math
43
def find_max(nums):
5-
max = 0
4+
max = nums[0]
65
for x in nums:
76
if x > max:
87
max = x

0 commit comments

Comments
 (0)