7 kyu
Perpendicular lines
232 of 1,535MelonFruit
Loading description...
Fundamentals
Algorithms
Geometry
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.
Clojure translation based on existing Java version.
Approved
I would change the description a bit: it's better to specify that we are looking for the number of intersections of perperndicular lines. Or it can be worded as 'find the number of pairs of perpendicular lines'.
very easy, i think it's 8 kyu, not 7
The second example does NOT show bisectors (which should divide a line exactly in half). The description is therefore wrong.
Fixed
At first looks hard, but pretty simple. Nice kyu.
Ruby Translation
SQL Translation
Approved, thanks :)
Lambda Calculus translation
Damn 😳
very interesting task, 15 minutes of analysis
Haskell translation
Approved, thx :)
C translation
You have competition :P ( no, not from me )
C Translation (a bit late, though).
Approved, thx :)
Python translation ( not mine! )
Please review carefully, author has no experience translating.
Yeah, even I can see the test headers don't add up.
Also,
500
random tests. That's not necessary.I do believe all languages have 500 random tests.
Oh, JS has as well, but staggered. I only looked at the last category ( which has twenty, which is not near five hundred ).
Made a forked translation (see here) for this one, with proper translating (I hope), please review and approve :)
P.S. As long as the amount of tests aren't time-consuming and have diverse tests, I think that should be good :)
Approved, thanks :)
Error messages on that translation are not specified. I'd suggest to provide message
Javascript translation
approved, by author I suppose
Yeah approved it, thank you :)
a picture and/or an example would be very nice
Added an image with examples when n is 3 and 4 :p