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.
Scala translation
Changed description to specify the above and changed Python random tests to ensure it never happens
Alternative is simply specifying that versions which differ only by trailing zero subversions will never be given, though that will need tests changed for all langs (which has to happen anyway since coverage is nearly zero).
Changing the written spec to be such that
10
is strictly less than10.0
is fine as well, though it makes less logical sense to me.Note that the Haskell version doesn't ask for a Boolean but for an Ordering. This has never been a ( big ) problem, but maybe Haskell should have a specific ( part of the ) description.
Reference solutions need updating now. This changes the ( implicit ) spec.
Fixed
Language agnostic description
There is no clear specification on how a trailing subversion of
0
should be handled, i.e. is10.0
greater than or equal to10
?This comment is hidden because it contains spoiler information about the solution
Great kata. I'm not satisfied with my solution, but I'll revisit it in the future to try another approach.
print the input. your code only works when there are at most two components, try it with e.g.
1.2.3
vs1.1.4
this is the test that you are failing:
10.4
vs10.4.8
. the left one is older, so the expected result isfalse
Not a kata issue, at least for javascript, it's pretty clear. If you're talking about some other language, there is another open issue below: https://www.codewars.com/kata/53b138b3b987275b46000115/discuss#63ad157f0af269000f92c022 and you're probably talking about the missing Ruby block. Added it for Ruby.
Loading more items...