6 kyu
Greatest Position Distance Between Matching Array Values
653 of 1,466bryzaguy
Loading description...
Algorithms
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.
C#: Actual and expected are swapped in random and sample tests
C Translation
This is my first attempt at a translation and I am not expert at C. Please be kind and tell me if I made any mistakes.
arrays of length 0 and 1 should be either tested or out of specs
Hi! The C# version of the assignment said array, the kata code uses the list.
Check out my Java translation.
Looks like there is a a bug with the FinalCase in C#. I'm getting the correct expected distance as I can see in my console log. Yet when I return that value, the test is saying my actual value is something else.
Scala translation
LGTM, Approved!
( JS )
Random tests are vulnerable to input modification.
Python fork
.
Hello,
I try to import the "itertools" package, but it doesn't work.
Anyone knows how to import packages in the "Solution" screen ?
Thanks
I think you have some bug with FinalCase in C #
Python 3 should be enabled.
I think it is now.
Hello, I think there is maybe a bug in the c# version of this kata. On the second test I'm getting the error: Expected: 0 But was: 6 With the list { 0,7,0,2,3,7,0,-1,-2 }. Shouldn't it expect 6? If I souded rude, I'm sorry rude, it wasn't my intetion. Thanks for this kata.
I liked this KATA. Not too simple, not too complicated. Good one, thanks.
Python translation kumited.
Solid kata, well explained and tested. Good job.
Thanks!