Doesn't BigInteger have a limit of 50 or so?
The tests for this kata are clearly poorly written....
This comment is hidden because it contains spoiler information about the solution
Occam's Razor. Nice.
Haha, this is cheating.
Non-sequential sequence is a non-sense. Should say either "bag" or "set" of symbols as far as some random combination of numbers does not make a sequence automatically.
Test cases updated!
By default, this code not working without " require 'Date' ". Nope?
genius that's learnt all Ruby methods. thx
I think this solution is what author expected, because of two reasons : It follows camelCase & Doesn't did too much changes to the intial code (which current best practice solution does).
The example under the instructions isn't showing up for Ruby. I was rather confused as to what straight doubles and straight triples meant until I switched languages to take a look at the example.
great job. this looks awesome.
Test case has string instead of string array.
You should be more clear about how you want the final output formatted. For example, if the input is 14.999:
At first I though you just wanted 2 decimal places, so I gave you "15.00" and failed. I tried removing trailing 0's including the decimal place if both decimals were 0.
I gave you "15" and failed. It seems what you really wanted was 1 decimal place if the second decimal place was a 0. "15.0" seems to work okay.
Kind of an odd requirement, but I'm flexible...