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.
Thanks, I emphasize readability as it's good practice in general and on Codewars in particular, ass I guess most of us here like to learn from each other's solution.
Seven years late, but your comment inspired me to use a less conventional approach for my JavaScript solution.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
do we really need that kind/level of optimization, tho...? 'XD
To be fair so much of it's length is taken up by just the break statements alone, it's actually a very clean solution if C# had alternatives to break statements
Merge conflicts happen often, and sometimes they are incomprehensible... I published a new fork, I guess it should be approvable (I made some minor changes to the description, using TitleCase for language names as required by typographic conventions): https://www.codewars.com/kumite/62809d72cc1753c8895e1184?sel=629c1a5c448d0bdd9e683926
Congratulations for this kata, it's a challenging and interesting one!
Great explanation. Thank you!
Given x and y calculate Julie's age using the function age(x, y).
Not sure if it was added before or after your comment though.
Well, it depends on who do you think this kata is designed for.
For users who are familar with C#, those returns are not necessary (actually i ignored them)
But if you want 'beginners' to get a better start, you may keep them.
You set
once = true;
in the end of the iteration, and apparently, .First will not iterate over the whole list.Since it's in beta, you are free to modify your kata to make it undefeatable (and you better do), which is exactly the reason why we need beta process.
Nice suggestion! I am actually stuck in a "naive looping solution", my solutions time out all the time :) Do you have any suggestion for me to research about, so that I can evolve to a less naive stage? That would be of great help and so appreciated mate! Thanks!
Somebody said, that there is a bug in test cases, could you check it? You can see the issue in 'issues' section for this kata
LesRamer, thank you. Approved your translation
Thank you for your suggestion!
If I ever make another version of this, I might include those. I can't rightly change this kata anymore of course.
Loading more items...