8 kyu

Filter out the geese

16,511 of 44,655stevehopkinson

Description:

Write a function that takes a list of strings as an argument and returns a filtered list containing the same elements but with the 'geese' removed.

The geese are any strings in the following array, which is pre-populated in your solution:

  ["African", "Roman Tufted", "Toulouse", "Pilgrim", "Steinbacher"]

For example, if this array were passed as an argument:

 ["Mallard", "Hook Bill", "African", "Crested", "Pilgrim", "Toulouse", "Blue Swedish"]

Your function would return the following array:

["Mallard", "Hook Bill", "Crested", "Blue Swedish"]

The elements in the returned array should be in the same order as in the initial array passed to your function, albeit with the 'geese' removed. Note that all of the strings will be in the same case as those provided, and some elements may be repeated.

Arrays
Fundamentals

Similar Kata:

Stats:

CreatedSep 30, 2016
PublishedSep 30, 2016
Warriors Trained66779
Total Skips5516
Total Code Submissions98238
Total Times Completed44655
JavaScript Completions23112
C# Completions2043
Python Completions16511
Crystal Completions32
Ruby Completions1215
TypeScript Completions934
PHP Completions1180
Julia Completions50
Haskell Completions342
Racket Completions50
CoffeeScript Completions17
R Completions102
COBOL Completions14
Scala Completions103
Total Stars499
% of votes with a positive feedback rating92% of 4349
Total "Very Satisfied" Votes3726
Total "Somewhat Satisfied" Votes544
Total "Not Satisfied" Votes79
Total Rank Assessments10
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • stevehopkinson Avatar
  • Unnamed Avatar
  • GiacomoSorbi Avatar
  • natan Avatar
  • kevinthomas Avatar
  • anter69 Avatar
  • PG1 Avatar
  • Chrono79 Avatar
  • lucky3 Avatar
  • andres-uris Avatar
  • mitron6 Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
  • stellartux Avatar
  • davidamey Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • dfhwze Avatar
  • whqwert Avatar
  • KayleighWasTaken Avatar
Ad