+ 3
[ Paranoia challenge ] my code has a bug !
the code turns logs into some thing like : months_storage = [month1, month2, ] SLR_storage = [amount1, amount2, ] well , the code finds the first 2 numbers [in SLR_storage] that have the same value then it uses them to find the different amounts of money [the error] the problem is when the 2 different amounts of money are in the begining of SLR_storage it uses the wrong value to find the different amount so it thinks that right values are errors , run the code to understand what I try to explain 😁
3 ответов
+ 3
@Charles Comer
Thanks , it has been fixed !
https://code.sololearn.com/cANuCEUn7vzy/?ref=app
+ 2
the code :
the bug is in the function that in line 56
https://code.sololearn.com/c1bJ3vqpVm3T/?ref=app
+ 1
The way I read the challenge is that you looking for overspending. I would suggest searching the for the lowest amount first then see what matches and what doesn't.