about | help | code help+videos | done | prefs |
apcsaChatbotsCountWordsHard
HARDER PROBLEM: skip if you have troubleGiven an input String, find the number of words. For this problem, a word is defined very simply as any set of characters which are not spaces. The test cases for this problem include more "edge cases" with more unusual character sequences. HINT: think about how many spaces there are in the input. apcsaChatbotsCountWordsHard(" spacefirst") → 1 apcsaChatbotsCountWordsHard("spacelast ") → 1 apcsaChatbotsCountWordsHard("nospace") → 1 ...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