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.
It's not
It's a simple and compact solution, but is really slow, definitely not good for really big lists
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
There should be no floating point repesentation issues. Order of evaluation is defined, so there should be no ambiguity.
It is quite possible that expected values or reference implementations use wrong orders internally, but this problem should be solved correctly. Using fixed point libraries is not the correct solution.
Closing.
Thanks i just did it right now, i'm still new to the codewars web, just joined a couple days ago
Hi, I get the whole library restriction, but in order to tackle the floating point precission issues, maybe you should allow using "decimal" library in python or similar if exist in other lnguages, it's just a true decimal perfect precission data type, gives no advantage like eval(). Thanks for the challange btw
Hi. You could post it as a suggestion in the kata Discourse page rather than as a comment to your own solution (it's almost invisible here). I think it's a good idea.
Hi, I get the whole library restriction, but in order to tackle the floating point precission issues, maybe you should allow using "decimal" library in python, it's just a true decimal perfect precission data type, gives no advantage like eval(). Thanks for the challange btw