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've been writing it like that for 2 years? While yes it is pretty obvious, there are other ways of solving it. Either way you write it, in the end if it works it works, no big deal.
Oh boy, the makings of a FizzBuzz function. I love CW so much.
It's because the solution is technically a 'full / real' one-liner. The second best solution below technically speaking, is two lines since it is defining the function as well. This solution is only one line which is why it is above the one below. And if that isn't why then feel free to correct me.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Lol always the creative way.
What happens when comment starts with 'Caiihfdsaifjioeiopn'? it would still return True right?
I started learning Perl a little while ago so I have a question about this. Why does this work without having my to define variable '$a'? I thought you had to have one or am I missing something?
I don't know anything about JavaScript but if you think that's a long script then you should see some of my batch scripts. Pure italian spaghetti code.
Nonetheless good job and its nice that you challenged yourself!
Very nice.
Doesn't matter which way you do it you still get the same result. It's the same with addition too.
That just awesome.
Harsh but true!
Just for giggles I did it twice, first for my simple solution, then did it using recursion just to see how it would take it. Worked perfectly fine although the second method is slower because well, recursion.
Print does exactly what it says it prints the value. But you use return when using a function because the kata wants to receive the output not for you to print the output. When you print the output the kata does not receive an output so it marks it wrong. WHen you use print you get 'None'.
Loading more items...