| about | help | code help+videos | done | prefs |
Return true only if a given String has the letters a and b in both the first and last two characters. All of the Strings "abab", "abba","baab", and "baoba" would return true while none of the Strings "aabb", "bbba", "abbb", nor "ba baracus" would.isAbba("abab") → true isAbba("abba") → true isAbba("baab") → 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: 150
Copyright Nick Parlante 2017 - privacy