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'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.
There appears to be an issue with tests on C# translation.
Expected: "-1795367280--1795467271"
But was: "2499600016-2499500025"
The input number was 99991 and my result was the same as the one provided in sample test. Seems like an issue with integer rollover.
Magic numbers aren't really best practises though...
This comment is hidden because it contains spoiler information about the solution
How is this a best practice and/or clever? It's clearly a wrong solution and was probably passed before there were random test cases in this kata.
This comment is hidden because it contains spoiler information about the solution