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.
This logic is simple to catch. I like it
How is this following best practices? It is clever, but hardly readable.
Breaks for
"(()())"
It's very dense and a bit hard to understand.
It's clever for sure!
I wouldn't hold it as an example of "best practice" though, since the code should be readable even if it's a bit longer. It'll be easier to mantain in the long run.
Yip, works now :-)
Hi, thanks for your report! I've updated the test case & added additional detail regarding division by zero, please kindly try again.
Yep, works fine now, thanks :-)
I think I fixed the typo. Could you tell me if it now works?
When trying with PHP. This call definitely comes from the tests, I have no such function call.
I agree, I was confused by it too; assumed it to be sorted by the alphabetical character only, and not the whole substring.
But apart from that, looking at other solutions… wtf, that complexity of the solutions.
This comment is hidden because it contains spoiler information about the solution
Hi, can you provide your solution so I can check it with more detailed information?
Each time I try to submit, I get one of the following error messages (I definitely have no $expected_result variable in my own code):
testRandomCheck
✘ Undefined variable: expected_result
Completed in 0.29ms
testRandomCheck
✘ Failed asserting that false is identical to 0.
Completed in 0.40ms
There seems to be something broken in testRandomCheck; how would false ever be expected?