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.
Me too, actually, I had to look up lambda syntax =]
Good catch! Will refactor to account for this edge case, thanks!
There are minor typos in 2 of the formula images in the description. In the formula for
Uy
, the part(xa - xb)
should be(xb - xa)
. In the formula for distance between points A and B, the part(yb - yc)**2
should be(yb - ya)**2
.Otherwise, nice kata!
Perfect! Nice kata, btw, I enjoyed the sparse instructions and having to rely on tests and feedback to build the needed objects.
This comment is hidden because it contains spoiler information about the solution
The expected return value for area of a circle is incorrect. The formula for area of a circle is
r * r * pi
, but the tests expectr * pi
instead. For example, the area of a circle with radius 2 (rounded to 2 decimal places) should be12.57
, but the test expects6.28
.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Perfect!
Random Tests fail if array of max subsets is in a different order:
Can the description be updated to specify in which order the max subsets are expected?
Good point, the call to loadData is not tested.
Does this require registering an Instagram account in order to obtain a valid access_token or client_id? Without it, I receive the following error:
That's exactly what the problem was. After changing my code, all tests passed. Sorry for the inconvenience!
That's a possibility, although the non-random tests pass without issue. I'll recheck my code.
Random tests for Ruby appear to expect an empty array:
Loading more items...