i have this code and is tellling me time limit exceeded, how can I fix it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
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