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.
I agree with @ewhoambra, the solution will fail when implementing it for "Hello I am Joe".
Could someone help me undertsand that ternary expression, please.
If num is divisable by 2.
the value of num will be num divided by 2
then i don't quite understand.
For instance
given num = 12
it would get into the while for the first time (12).
12 % 2 == 0? true
num = 12 / 2
num = 6
since it was true. It would decrease num-- otherwise it would increase the ticks++.
Is that correct?