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.
can anyone explain to me the purpose of this line in this code
"if (line.indexOf(' ') >= 0)"
i know what is indexof. but not in this code
when i tested this code without that line, it gaves me Timeout
Clever thing you did there with $i = 3 in the for loop, takes care of 2 problems at once
Duplicate issue below
Duplicate issue below
Expected here saw somthing more cute🙄
Appreciate man, you saved my day. I spend almost 5 hours on making it work. Thanks God I saw your comment and rewrote the whole thing to JS
Some tests against storing the argument globally would be nice.
Nice! This is much cleaner than my solution. I like the useage of reduce and replace. I will have to remember to use these more often.
Issue still not fixed :/
Please fix PHP tests, my code produce the same thing as my javascript code, but my javascript code pass all the tests..
This comment is hidden because it contains spoiler information about the solution