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.
Simplified solution, but the code traverse four times the string.
This comment is hidden because it contains spoiler information about the solution
I got as far as reading about numerical calculus and Lambert W functions before I realized a constant-time solution probably wasn't going to happen.
Not a correct solution: "aaaabb"
It's too late to change the kata design, it's been solved many times. (Also it teaches new c0ncept about arguments of functions, so why not?!)
How beautiful Linq is!
Fixed.
I will be happy to help you, but don't want to kill all the fun with this kata, not yet.
I did not test your solution, but it can be that it's not sorting what should be sorted.
And, in random tests, do you get errors, or timeouts?
I've tried my best ... but I have no idea what's the goal of this task.
I understand, that it's supposed to look like a riddle, but in my opinion Katas on this platform should be clear on what are the requirements and what's the goal.
I thought I've understood the task and passed the training tests, but then random test came and I have no idea what am I expected to do.
Please, provide a more clear explaination and/or an example.
Damn it, I thought I could complete it with a O(1) solution by coming up with a formula and I've wasted a lot of time. Well, lesson learned...
In C# version there is a problem with random tests.
Description states that "Words are separated by spaces in the sentence.", so in this case the expected value is incorrect.
I think that the description is waay to long to describe just a simple task task to generate array of even numbers up to n.
Simple kata, but you should emphasize more, that the input array will contain ONLY plural words ending ONLY on "s" and "es".
It's a pretty interesting kata and unique, that's for sure. The problem is that the description is quite confusing. You should provide some details about how the function should work, that would be much easier to make some tests, that would prove that the implementation is wrong.
Also, in C# tests break, when I call function with null as a parameter, I think you should probably look into that, because the first parameters, that would come to my mind when testing using string as paarameter is string.Empty and null.
Thanks for pointing out the little error with the tests.
But your solution was actually wrong.
I've edited the tests to now display the correct error message
Loading more items...