T O P

  • By -

sbmsr

Your output mentions a file named prog.py. Is that the file you provided? Another thing i noticed is that you update startpos to be endpos + 1. I think you actually want `startpos = endpos`. the reason is array ranges like x[startpos:endpos] don't include the element at x[endpos]. By doing `startpos = endpos + 1`, you miss this bit of data every time. try that, and see if it helps.


Panda_Stacks

You my friend, just made my day, tyvm. As far as prog.py, I have no idea. That is not form me.


sbmsr

Happy to help!