about | help | code help+videos | done | prefs |
Write a method that returns 'true' if 'targetWord' can be made from the letters in the phrase "The Mazda Miata is a fun car to drive", or 'false' otherwise. Letters in the phrase "The Mazda Miata is a fun car to drive" may be used any number of times. For example, if 'targetWord' was "aardvark" you would return 'false' because there is no "k" in the phrase. However, "heart" would return 'true' because those letters all appear in the phrase. Note that this is NOT case dependent. test2021_03_11_HL_miataWords("kylenoseplease") → false test2021_03_11_HL_miataWords("jacksonnoseplease") → false test2021_03_11_HL_miataWords("frame") → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 250
Copyright Nick Parlante 2017 - privacy