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.
No, this way it is going over the array two times (once each per array_filter).
I think this way, as soon as it finds the outlier it will stop the foreach consuming less memory than loop the entire array.
Why is this line needed? @$text[$len+$i] = @$text[$i] = '';
Oh, it`s very interesting solution=)
Great solution. It shows a lot.
I got why it happens because used
assertEquals
instead ofassertSame
,10 == true && ture == 10
. https://stackoverflow.com/a/10254238/8574922This comment is hidden because it contains spoiler information about the solution
Way too convluted.