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
This comment is hidden because it contains spoiler information about the solution
nice!
This comment is hidden because it contains spoiler information about the solution
fsum
is for floating point numbers, hence the precision issue. When dealing with integers,sum
is the function to use.I'm new to python to. I search in math package and found math.fsum function, thinking as it to be more accurate but it just failed the test for large numbers. Maybe there is some precision issue
Gotta love floating points.
This comment is hidden because it contains spoiler information about the solution
twoDecimalPlaces(1.005);
Had this equation but was missing the / 2 at the end, wrote it out the long way and waayyy over complicated it in my brain
i guess your writing style is as good as that solution you were talking about lol
It's quite simple - you check all the paths until a & b || c & d returns true. Sometimes there are two possible ways - such as in the banana case. For this reason there is the || in our solution for both recursive paths
impostor syndrome is hitting real hard after seeing this lmfao. great job though!!!
good
Loading more items...