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.
added to Java, JS, C#
what language ? added to JS
I know the problem. The definition of Caesar cipher you quoted is the general one. As far as I remember (the kata has many years... first translation is 7 y.o) I avoided negative shift though I am rather sure that in my solutions I wrote "my" modulo to prevent that kind of problem in some languages. For a lot of reasons (lack of time amongst others) I don't see interest to change something. Sorry:-) Maybe one day you author your own kata (some kind of variation on Caesar cipher with negative shift:-) and see the pain to try to maintain them as best as possible!
Could you try again? There was such a dubious case but I removed it.
OK. I modified the description by adding a few lines after the the first two. Please tell me what you think of that addition.
Edited and republished the description with a mention for Scala : "Scala : Approximation of PI with 10 or less decimals without trailing zeroes".
I hope you will not "eat" too many of my katas;-)
For now CW has lots of problems; when I try to republish I only get "Internal Error". I will let you know when it has been possible.
What if I give the "rounding" formula as I did for some other languages:
Math.round(number * 1e10) / 1e10)
in the "template" solution?Effectively it seems that it may happen but I don't see a "trap" with that... Nevertheless I remove the "There are no traps in this format." which in fact was about the
h|m|s
substrings. I also add: "Substrings in the input string are separated by,
or,
". Hope that will satisfy you.Please which language? Are you speaking of the input or of the output? Can you give an example?
ByteEater: I'm curious about where did you get that definition about the diameter of a cylinder. A cylinder is well defined given a radius or a diameter (they're implicitly referred to the base or a cut parallel to it) and a height.
Right! Very sorry for this thoughtlessness. A bit weird but I added in "Solution"
; return the number 0 if the number of rolls is zero
in order not to invalidate existing solutions + a sample test with a0
.Thanks.
I note you are increasing the percentage:-)
Modified by "the diameter of the cylinder base..." though there was no problem for 3216 people:-)
Your interpretation of exit_time description and start=exit is correct.
Wording of exit_time definition was specifically chosen to express interval
openess and covers points 2 and 3 and, by extension, point 1.
I don't believe further extension of specification is needed.
Your solution seems to incorrectly handle case described in p. 2.
Yeah, was about to mention that. I found out that my solution has an overflow after successfully submitting.
Loading more items...