I think this prog will crash in some states.[solved] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

I think this prog will crash in some states.[solved]

Is there a testcase for crash? https://code.sololearn.com/c2roagu5gS55/?ref=app

6th Jul 2020, 7:14 AM
Oma Falk
Oma Falk - avatar
5 Answers
+ 1
Ahh there really is an error: If there are more persons as tills.... Just convert tills =[q.pop(0) for i in range(t)] to tills =[q.pop(0) if q else 0 for i in range(t)] You can be proud of your toe!
6th Jul 2020, 10:09 AM
Alexander Thiem
Alexander Thiem - avatar
+ 2
Alexander Thiem 😱😱 thats it!
6th Jul 2020, 10:20 AM
Oma Falk
Oma Falk - avatar
+ 1
why do you think so?
6th Jul 2020, 8:14 AM
Alexander Thiem
Alexander Thiem - avatar
+ 1
Alexander Thiem my left toe is aching. Normally a save indicator for a bug.
6th Jul 2020, 8:20 AM
Oma Falk
Oma Falk - avatar
+ 1
Oma Falk Ok, then there has to be a bug.
6th Jul 2020, 8:52 AM
Alexander Thiem
Alexander Thiem - avatar