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.
ohhh got it, thanks for the heads up i really apreciate it
You have to write a function with the same name as the starter code. You can hit the reset button on the bottom of the trainer to get back the starter code, but it will delete any code that you have written. On codewars, the tests call your function directly and they pass in parameters as function arguments. You don't need to use
input
, and if you do, it will cause the tests to time out because nothing will ever be input into stdin. Also, printing the result will have no effect. The tests do not read the contents of stdout. The tests expect your function to return a value.This comment is hidden because it contains spoiler information about the solution
fixed in the latest Ruby fork
This prompted me to use a ternary operator for the first time. Nice.
After looking at some of the solutions on other problems, I was able to use a dictionary on this one!
Apologies, I just figured out I was confused. It works as expected, MyBad!
The language was Go BTW.
Sorry for reporting mistakenly,
Cheers,
Please mention the language where you found that, and no, changing the description is not the way to go.
Desc says: "If Alex gets 10 or more hoops" but tests check for more than 10 while 10 expects "Keep at it until you get it". Please update either desc or test cases.
A simple but useful little logic puzzle. Alex, you need a new hobby.
I don't think so, for people who are new it's amazing else go on with the next kata if it hurts so much.
that was very easy
Approved.
Added long time ago.
Merged.
Loading more items...