This should probably include an explicit test which checks for the solution's precision. I tried submitting a solution with 2 decimal digit precision and it passed all random tests on the 4th try.
No random tests.
No random tests in Ruby.
Where is Part 2? I can't find it...
Duplicate of https://www.codewars.com/kata/by-the-power-set-of-castle-grayskull and https://www.codewars.com/kata/simple-fun-number-273-powerset up to ordering.
JS translation kumited.
; ) )
This comment is hidden because it contains spoiler information about the solution
There should be some way to check whether the user has used * or not, I would suggest trying JSON.stringify().