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.
Javascript version still using Node 8
C++ Translation.
Python Description agnostic and solution ungolfed
Description should be language-agnostic
Python: reference solution and translator's solution should be ungolfed.
Description should be language-agnostic
JS Node 18 should be enabled
C translation (author inactive)
Ruby 3.0 should be enabled, see this to learn how to do it
Ruby 3.0 should be enabled, see this to learn how to do it
"If you get something that's not a number at all, return false."
I think it will be good to add to Basic Tests case with something like union_jack('7') -> expected: False.
It will clearly show what is 'not number at all' because in some katas such 'numbers' are still valid numbers in others katas no.
It might be helpful to add in the description that the amount spent by the group is to be divided evenly. The description as it stands just states to "balance the books", but this is probably not very clear, especially for non-native English speakers. It's probably also a cultural thing how the total is divided per person -- some groups divide the bill up by how much each person spent, or based on the salary/earning power of each individual.
It took a bit of thinking about the example to understand this, so it would be helpful to clarify.
Thanks!