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
isn't that supposed to be a duplicate of https://www.codewars.com/kata/58a3fa665973c2a6e80000c4 ...?
Codewars test framework already has a method for determining if floating point numbers are within a margin, use
test.assert_approx_equals(actual, expected, margin=margin)
instead of measuring the delta yourself.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution