No, it works for both positive and negative integers. Just tested it, (-9, 1) returns "-1000".
Yeah, it only works for positive integers
i dont think so, since its a kyu 7 problem
Using hours, minutes, and seconds to correspond to R, G, and B -- as I assume you intended -- it would be cool to see how this clock's colours change over the course of the day. It would be easy to code, too! I suppose they'd be rather dark colours, given the constraints for valid h/m/s values. But dark colours are good for a clock background. Maybe I'll go try that...
Ruby translation, please check and approve :-)
A comment should not be marked as an Issue unless it is confirmed that the problem being described is due to the Kata itself.
This comment is hidden because it contains spoiler information about the solution
This code returns -0, if you pass 0 as a parameter.
its an equivalent to an if/else construct that returns a value