about | help | code help+videos | done | prefs |
APCS String 2, Problem 15. We'll say that a lowercase 'g' in a string is "happy" if there is another 'g' immediately to its left or right. Return true if all the g's in the given string are happy. S215_gHappy("xxggxx") → true S215_gHappy("xxgxx") → false S215_gHappy("xxggyygxx") → false ...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: 200
Copyright Nick Parlante 2017 - privacy