Retired

The Red Herring (retired)

Description:

Lets go fishing!

Given an array of items, fish the odd one out!

fish([1,1,1,"red herring",1]) //should return "red herring"
fish(["red herring","red herring","red herring"]) //should return "no catch"
fish(["red herring","blue herring","yellow herring"]) //should return "no catch"
fish([1,2,1,2]) //should return "no catch"
Fundamentals
Puzzles
Data Structures

More By Author:

Check out these other kata created by ransy

Stats:

CreatedMay 30, 2015
Warriors Trained229
Total Skips43
Total Code Submissions618
Total Times Completed29
JavaScript Completions29
Total Stars4
% of votes with a positive feedback rating69% of 21
Total "Very Satisfied" Votes11
Total "Somewhat Satisfied" Votes7
Total "Not Satisfied" Votes3
Total Rank Assessments17
Average Assessed Rank
6 kyu
Highest Assessed Rank
2 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • ransy Avatar
Ad