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.
It's bad practice to remove them. It's relying on the tests to include them instead, which leaves these solutions prone to being automatically invalidated in the future if the tests change and their solutions don't compile anymore. The line or two saved by omitting them isn't worth that risk, so you're doing good by keeping them in
why theres no #include
i tried it without the lib but dosnt work for me
Very readable and logical. Oh, this language design...
where did 'const' go?
You don't need the 'else' statements. If your if statements have 'return' in their conditions (like this case) and there's only one statement that can be true (the person cannot have multiple ages so it doesn't pass through multiple if statements), you don't need the 'else' keyword. You can simply write 'if'.
Whilst this solution does pass the test it has changed the parameter from a const. This would be considered bad practice as it edits the original value.
Or 9
Not an issue.
Or 8
You are welcome :-)
Thanks for the kata, I really liked it! :)
I really liked this kata. :)
Great kata! :)
In my view this is TOO MUCH easy for even an 8 kyu task.
I think this is rather a 7 kyu kata than a 6.
Loading more items...