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.
Thank you! Oh, and btw thank you for this great kata!
That list is now approximately compared to the reference value. Your original solution now passes.
I see you are not. Do not take the
4 * ( .. )
into the parentheses.I'll have a look at improving the tests, maybe do an approximate comparison over the list.
For now, you'll just have to follow the spec.
Order of calculations matters when doing floating point calculations. Are you following the exact spec as given in the description?
This comment is hidden because it contains spoiler information about the solution
Great idea! It would be more fun to solve and cheat :) First thing I would do is to convert those to
list
and than back.Instead of trying to disable the builtin features why don't you implement your own list like data type that supports only the allowed functions?