my version

This commit is contained in:
2025-05-14 08:10:05 +02:00
parent 70f920a16c
commit 2a00a5e3fe
4 changed files with 241 additions and 92 deletions

View File

@@ -7,7 +7,7 @@ def force_brute(liste, i, j):
def somme_max(liste):
max_actuel = max_total = liste[0]
max_actuel = max_total = liste[0]
for x in liste[1:]:
max_actuel = max(x, max_actuel + x)
max_total = max(max_total, max_actuel)