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.
same bro AHAH didn't know php can do that xD
Mind your language please.
out laughed ahahahah
A bit late :-)
Thank you for the information. That's good to know :-)
Opps, yeah thanks haha :)
that's called
O(1)
, then ;)This comment is hidden because it contains spoiler information about the solution
Thanks! ;)
Read TEBESKASHI's post in the kata discussion and my reply there.
+1 for trollface
Then i suggest you try Ruby/Perl/IOCCC/GS2/J, this one is too naïve facing those beasts
Use spoiler flag next time.
@muxa92 i hate you.You makes my self-esteem lower.So i am not special && perfect?My life is a lie!
Good catch!
I know about
foreach
, but that wasn't my mistake.for
is actually faster thanforeach
, but only if I don't callcount()
in the condition.So the faster solution should've been:
This way,
count()
only gets called once and everything runs faster.For readability yes,
foreach
is better.PS: This entire solution isn't optimized. I might have rushed through this low level kata, as a distraction on a break from work :)
I just love doing that XD ! but thanks for your comment.
Loading more items...