+ 1
The code is giving error for input 7 and it works for other numbers
https://code.sololearn.com/ctueJTMYB06i/?ref=app For big numbers also it's showing the same, it should show execution timed out I think ,but where is the wrong happening
1 Answer
+ 3
when you remarked this line
#a3.insert(0,z)
This will happen
"IndexError: list index out of range"
the problem is with this code "a3.pop(0)"
so remove the remark &
try it to look into other problems you might have
# Keep learning & happy coding :D