7 kyu
Partial Word Searching
2,076 of 7,703obnounce
Description:
Write a method that will search an array of strings for all strings that contain another string, ignoring capitalization. Then return an array of the found strings.
The method takes two parameters, the query string and the array of strings to search, and returns an array.
If the string isn't contained in any of the strings in the array, the method returns an array containing a single string: "Empty" (or Nothing
in Haskell, or "None" in Python and C)
Examples
If the string to search for is "me", and the array to search is ["home", "milk", "Mercury", "fish"], the method should return ["home", "Mercury"].
Arrays
Strings
Fundamentals
Similar Kata:
Stats:
Created | Jan 15, 2015 |
Published | Jan 15, 2015 |
Warriors Trained | 15094 |
Total Skips | 1334 |
Total Code Submissions | 32455 |
Total Times Completed | 7703 |
Java Completions | 2076 |
Ruby Completions | 533 |
Python Completions | 1740 |
JavaScript Completions | 1732 |
Haskell Completions | 122 |
C# Completions | 761 |
Swift Completions | 858 |
C Completions | 99 |
Total Stars | 148 |
% of votes with a positive feedback rating | 86% of 918 |
Total "Very Satisfied" Votes | 719 |
Total "Somewhat Satisfied" Votes | 142 |
Total "Not Satisfied" Votes | 57 |