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:
Created | Sep 30, 2016 |
Published | Sep 30, 2016 |
Warriors Trained | 66779 |
Total Skips | 5516 |
Total Code Submissions | 98238 |
Total Times Completed | 44655 |
JavaScript Completions | 23112 |
C# Completions | 2043 |
Python Completions | 16511 |
Crystal Completions | 32 |
Ruby Completions | 1215 |
TypeScript Completions | 934 |
PHP Completions | 1180 |
Julia Completions | 50 |
Haskell Completions | 342 |
Racket Completions | 50 |
CoffeeScript Completions | 17 |
R Completions | 102 |
COBOL Completions | 14 |
Scala Completions | 103 |
Total Stars | 499 |
% of votes with a positive feedback rating | 92% of 4349 |
Total "Very Satisfied" Votes | 3726 |
Total "Somewhat Satisfied" Votes | 544 |
Total "Not Satisfied" Votes | 79 |
Total Rank Assessments | 10 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |