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.
yep its not doing anything more. was just writing solution quickly and added that as a habit.
is the ternary operator at the end doing anything? why couldn't you simply return the expression inside the parentheses like so?
agreed! more effort definitely gives nicer feeling at the end! just generally when i have short time i try to solve 7 or 8 kyu katas :')
My math is weak, so i can't wait to solve this and find out what others suggest as better solution..
1kyu spending 2hrs on 7kyu test, thats saying something about the difficulty level!
maybe considering performance part, this should be higher level kata..