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.
In 209917 min is found on index 1 and moved to index 0. I'm also surprised why it's the other way.
What shoud I do if input length is not a multiplication of 8? Some random tests are failing for my solution. Should I cut bits, add padding of leading zeroes?
This comment is hidden because it contains spoiler information about the solution
because Vasya is not so careless as to lose the 50 the 5th person hands over to him
Test 6 is wrong. As input you have: 25, 25, 25, 25, 50, 100, 50.
First 4 elements go into Vasya's pocket:
25, 25, 25, 25 || 50, 100, 50.
Then comes 50, so he needs to give 25:
25, 25, 25 || 100, 50
Then comes 100, so he needs to gove 75:
0 || 50.
Then comes 50...
How can this test pass?
Oh come on! Test 6 is wrong. [25, 25, 25, 25, 50, 100, 50] this cannot be "YES" :( Can author correct that?
As input you have: 25, 25, 25, 25, 50, 100, 50.
First 4 elements go into Vasya's pocket:
25, 25, 25, 25 || 50, 100, 50.
Then comes 50, so he needs to give 25:
25, 25, 25 || 100, 50
Then comes 100, so he needs to give 75:
0 || 50.
Then comes 50...
How can this test pass?