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.
You are right, solved, thanks
Adjusted, thanks, but Codewars said to me that I can't republish until I solve the issues, I only saved.
Oh, I saw the checkbox under this message kkk.
Third description example is incorrect.
2+2+3=7
.It is not specified values can be used only once.
If you want to restrict which values from the array can be taken, make sure to adequately specify the conditions.
Second description example is incorrect.
1+2+3=6
. Three values from the array.I think it's just to show you what counts? Or something? They should just put it in the spec, in my opinion.
Forked to adjust the tests according to the kata specs.
ref: see this and this.
Simple to solve, very simple, but excellent, conceptual kata.
Just write two lines! Readable > One-liner.
It would be cool improove the description. You have to start with true. And only switch to the opposite boolean value if the value of the item is flick. This is not clear in the description. But after talking to a friend, I understood. The kata is simple, as expected to a 8 kyu kata.
It is easy. The table name is "decimals". Make an alias of the field resulted of the rounding proccess. Pay attention to the text of the exercise. It is easy, the description is a little (only a little, not too much) poor, but you will can solve this problem.
Rejected due to:
being a PHP-specific kata (Translations should not be written for such domain or language-specific tutorial-based katas)
Outdated JS version
No random tests
You are right. We don't need the "else" statment because the previous "returns". Also, the other friend is right too, the right way to compare string (motivations of this in other answer here) is using the .equals(). I adjusted my solution.
Also I don't like "if" clausules without curly braces, although the code will have more lines. More clear is better. I adjusted the spacements too :)
Thank you guys!
It's good solution, but why have you written else statement in the end? Programm will go to command return "green", only if current state wasn't "yellow" or "red".
.
Loading more items...