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

Stats:

CreatedJan 15, 2015
PublishedJan 15, 2015
Warriors Trained15094
Total Skips1334
Total Code Submissions32455
Total Times Completed7703
Java Completions2076
Ruby Completions533
Python Completions1740
JavaScript Completions1732
Haskell Completions122
C# Completions761
Swift Completions858
C Completions99
Total Stars148
% of votes with a positive feedback rating86% of 918
Total "Very Satisfied" Votes719
Total "Somewhat Satisfied" Votes142
Total "Not Satisfied" Votes57
Ad
Contributors
  • obnounce Avatar
  • jhoffner Avatar
  • bkaes Avatar
  • GiacomoSorbi Avatar
  • ChristianECooper Avatar
  • JDeBolt Avatar
  • user5036852 Avatar
  • lilsweetcaligula Avatar
  • Voile Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • saudiGuy Avatar
Ad