7 kyu
Geometry Basics: Distance between points in 3D
422 of 764taw
Loading description...
Geometry
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
python new test framework is required. updated in this fork
Approved
Added a C translation:
https://www.codewars.com/kumite/62d57aea9769c5b78e098c2c?sel=62d57aea9769c5b78e098c2c
python should use new test framework with 3.8 enabled
Enabled in latest fork
A nice review for basic geometry. :)
JS and Crystal translation provided, cheers :)
choose one
I thought it's clearer this way, I don't think codewars language has any approximately equals thing, and it's a bit unreadable. All random tests do the rounding to 6 places.
You can compare the difference: abs(returnValue - expectValue) < 10**-6
The same thing with precision here. Non-straightforward solutions are always possible and the most precise solutions quite often are not the most straightforward.