+ 1

i have this code and is tellling me time limit exceeded, how can I fix it?

n = -1 num = 3 while n <= 0: i = 2 min = num max = num while i <= n: print ("numero", i) if num > max: max = num else: min = num

3rd Mar 2018, 12:54 AM
Camila Lancheros
Camila Lancheros - avatar
2 Antworten
0
How can I fix that?
3rd Mar 2018, 1:19 AM
Camila Lancheros
Camila Lancheros - avatar
0
Ask an amount n of salaries and tell what’s the maximum and minimum value
3rd Mar 2018, 1:25 AM
Camila Lancheros
Camila Lancheros - avatar