Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
the time you eat one big pizza is 10, and your brother eats 2 little pizza take 8,
so you and your brother finished all pizza will take 10 min,not 8min
eg: queue_time([2,10,3,4],2)
You have 2 box.
first , one box takes 2,and other one takes 10. 2 ,10
second, the box taken 2 will plus 3,the other box also 10. 2+3=5 ,10
because, 5<10,so the '10' box cannot take the number '4' 5+4=9 ,10
At last, you cann't take any number ,then you compare the boxs,return the max 10