about | help | code help+videos | done | prefs |
String goodBad(String str): If the string starts or ends with "good", return a string with the letters "good" replaced by the letters "bad". If "good" does not appear in the string, just return the string unchanged. goodBad("No good Yes") → "No good Yes" goodBad("good old boy") → "bad old boy" goodBad("dog is good") → "dog is bad" ...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: 119
Copyright Nick Parlante 2017 - privacy