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.
Many early solutions now fail, did you change the specification?
Added a block of tests that solve this problem.
Yes, you're right, it's because you're only rounding up the amount for those who left the house, and those who didn't also spent that money, and you don't take that into account in your decision. I did not think about such a problem when I wrote the tests.
my code passed on 106 tests and failed in 4, in only one day. I dont know what else to do, I think there may be a problem in the rouding part.