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.
This comment is hidden because it contains spoiler information about the solution
There are no floating-point issues in JS. Your solution is incorrect. Here is an example:
s = "(10/174/620/669)"
. Your solution returns-5.614415729596025
but the expected result is1.3855842704039755e-7
.I added small random tests. It should be easier to debug solutions now.
I think there's an issue with Floating point numbers in the JS version, This kata is very old so that might be the issue. But as you can see, result is basically the same and still returns a failed test :/
expected 136927709554.08983 to be close to 136927709554.0909 +/- le-9