Retired

The Red Herring (retired)

Description
Loading description...
Fundamentals
Puzzles
Data Structures
View
AllIssues3QuestionsSuggestionsShow Resolved
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    This is just a duplicate to all those "find the odd one" katas.

    And there's no random tests.

  • rjmk Avatar

    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.

  • Unihedron Avatar

    Here are my results from one of the test cases:

    // stdout: [ 1, 2, 1, 1 ]
    Expected: no catch, instead got: 2
    

    2 is clearly the odd one here. The test case is wrong.

  • wthit56 Avatar

    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.

    • ransy Avatar

      have adjusted the tests to make it easier but half the challenge is figuring out whats odd!

    • wthit56 Avatar

      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.

    • ZozoFouchtra Avatar

      This comment has been hidden.

    • ransy Avatar

      This comment has been hidden.

  • baumann74 Avatar

    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.

  • ZozoFouchtra Avatar

    Challenging kata ! Needs some improvements:

    1. Should explain more clearly what a "red herring" may be (odd value, value of odd type,... )
    2. Replace Test.expect with Test.assertEquals to let user know what was expected
    • ransy Avatar

      Thanks 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..