Retired
The Red Herring (retired)
29ransy
Loading description...
Fundamentals
Puzzles
Data Structures
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.
This is just a duplicate to all those "find the odd one" katas.
And there's no random tests.
Would prefer more spacing in the test functions and array examples; they look a little cramped. Also missing an apostrophe in the description ('Lets').
Otherwise GREAT kata with NO problems.
Here are my results from one of the test cases:
2
is clearly the odd one here. The test case is wrong.No, it is not. You did not understand the task right. I suggest author to add this as an example of 'no catch'.
will do!
Really not clear on what I'm meant to do, here. "Fish the odd one out" implies I just have to find the value that isn't the same as the others. But then sometimes I return "no catch". Can't figure out the logic of what I'm meant to implement. Some clearer, definitive instructions would be nice.
have adjusted the tests to make it easier but half the challenge is figuring out whats odd!
Right. I've got up to the
[ '1', '1', 1, 2 ]
test, but no further. Without having any hint as to the underlying logic, it's pretty much "stab in the dark" kind of thinking. Which means that even if I get it right it would be blind luck, at this point.This comment has been hidden.
This comment has been hidden.
On "Submit" the output just says: "Value is not what was expected". Not so helpful :-( Would be nice if it showed the input and expected result.
Have changed the testing method to address this. Good luck!
Challenging kata ! Needs some improvements:
Test.expect
withTest.assertEquals
to let user know what was expectedThanks for your comments. A red herring is something that misleads or distracts from a relevant or important issue. ;). If you feel I should open up the test cases then I can but like all odd one outs it always the puzzle to work out the rule..