Beta
Possible Triangles Formed with Available Iron Rods
5 of 7raulbc777
Loading description...
Fundamentals
Data Structures
Algorithms
Mathematics
Geometry
Logic
Strings
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.
Still time to fix this kata? :-D
Time to fix this kata ;-)
Thanks for this kata :)
In some random tests for JavaScript, expected output contains duplicate (and shuffled?) entries.
I haven't found exact condition to reproduce, but here's one example:
My solution passed 147 tests and failed 5 (haven't checked all 5, but first few had issue described above).
I've also tried Python and same thing seem to happen.
edit: format edit: reworded
Yep - having the same problem myself
Yes, same probem here (python). There are erroneous duplicate entries in the test output.
@
raul
: up? ;)Waiting for issue to be resolved so I can pass this kata :)
@raulbc777
Time to fix the issue :)
:)
These duplicate entries issues show up when there are two triangles with the same rel difference. In that case and for some reason I don't understand, it is expected to include these triangles twice ([..., a, b, ...] -> [..., a, b, a, b, ...]), sorted by order of appearance in the original array I passed this by "cheating" ;)
I'll give 5 extra points to the first user in solving this one. :)
Hi Raul, congrats to your top 10 - hard worker;-)! Maybe you need holidays... some weeks or month:-)...?!
Thanks Mathias for your kind message. These are my hollydays comparing other stressing tasks that I've been doing for years. It seems that I've got to come back to them next year, so let's see how far I can go :)