Repository navigation
Sottovettore a somma massima - Lez17A2PD2b #43
notedo
started this conversation in
Programmazione dinamica
Replies: 1 comment
massima_sottoseq = max(T) # 7
indice_max_ssq = T.index(massima_sottoseq) # 11
lst = []
while massima_sottoseq != 0:
massima_sottoseq -= A[indice_max_ssq]
lst.append(A[indice_max_ssq])
indice_max_ssq -= 1
lst.reverse()
return lst |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
ESERCIZIO VERO E PROPRIO

Esercizio a cui fa riferimento:

All reactions