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.
Too much questions.. :D
what the fuck are you doing..?
what a hack! i didn't knew that you can use expressions in switch-case. Cool, but is it good practice?
This comment is hidden because it contains spoiler information about the solution
Is '12-34:56-78:90-12' a correct MAC-Address? Your solution says, it is.
Is '12-34:56-78:90-12' a correct MAC-Address? Your solution says, it is.
Is '12-34:56-78:90-12' a correct MAC-Address? Your solution says, it is.
Cool, as i written my code i didn't knew how i can ged rid of a while-cycle. Your recursion-Solution is much elegant for this case. I have forked your solution and written it shorter, with just one return and better readable condition :)
Thank you, i finally understanded it and made my solution better ;P
bad practice, if you change the input variables.. $dm reproduce, how many damage you'll get from one monster, but if you change it, it will reproduce another value: sum of damage you'll get.
It works. but bad coding style
P.S. c==11?2 is a hack, because i don't understand what the test want from me.
?11=??
111=11
2=11=22
311=33
411=44
i can put there any number 1-9 and it will be correct! but the test fails if i didn't return exactly 2?
And this should be a good code?
just use single return.. your expression already return true or false, why return true, if expression returns true and false if not? ;) NOTE: IN php is 1 equals to true, 0 is equals to false :-P
No, because he have a cycle, that take 6 from $nb_petals while nb_petals > 6 :D
wtf are you doing
Loading more items...