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.
I like your solution :-)
This comment is hidden because it contains spoiler information about the solution
Mind that this solution causes UB for space-only (that is also empty) strings.
Particularly simple but clever regex, tho!
This will accept many illegal string like
][
.Very much agreed. I'd not want my compiler to warn me about those.
Thanks for the fix :)
Thanks - fixed. Really, compiler warnings about code like
a && b || c && d
are excessively presumptuous - surely only novice programmers are likely to be unaware of the order of boolean operations?Someone explain this magic pls :o
The Test cases cause compiler warning if compiled with Clang 8 C++17.
The fix should be trivial.
Hey Reizo,
Thank you for your help.
Cheers!
I wonder if arrays with negative values generated in
randonTests()
are intended, since they're very rare (only about 8%) and never mentioned in the description.If they are, it should be mentioned in the description and the rate of occurence or the amount of random tests should be increased, since this low rate would regularly allow solutions, that disregard negative values (like mine did).
Oh well, that disappoints me a little. Thanks though for your clarification.
Errr... That's not an argument but rather a fact! The test cases are LOCKED and so modifications are not possible anymore. ;)
I appreciate your response and see your point. However, personally, I'd not take that as an argument to allow even further faulty submission, because that would make the concept of this whole game pointless, wouldn't it?
Can you name an example, please?
Hi,
Unfortunately, there are already too much completions of the java version (more than 500) so the tests are not modifiable anymore.
Loading more items...