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're returning
""
instead of"0"
.I would not call failing that a kata issue.
not really a suggestion :)
You need to do more than that.
Presumably a part 2 to this kata will expand into more than 2 lights. Though this particular test seems a bit too simple, perhaps. Personally, I'd pass in an array of lights the coder has to handle, to make it a little interesting. But that's not essential.
Hi,
Wouldn't that be far more interesting/logical if there were not only 2 lists as arguments ? It won't really change the difficulty (except if you use
*args
(in python) instead of passing a list of lists as argument), but it would be far more appropriate to modelize the lights in a (big) city.Moreover, the description is quite obscure. Why not simply say explicitly that
the turngreen() function will return the name of the avenue/street that has to be ligthen, or None if there is no more streets
(or something similar... I suspect that this sentence is not written with good english... ;) ).Even if you don't want to change the algorithm, the modification of the description seems necessary.
Cheers,
B4B
Thanks. :)
Very simple and straightforward. Well done!
resolved!
And here i was hoping for a key word or phrase like "case closed" or "overruled" or something. Ill close it now!
You need to flag the checkbox to close the issue when replying, then :)
case closed!
Ruby translation submitted, if you want to approve it or the other waiting for your green light; cheers :)
I say we can close this issue as well, right?
You could close the issue by now, considering it has nothing to do with the testing code or other parts in control of the author.
Also, I would not round using the
.toFixed()
method, there are much better alternatives.Loading more items...