about | help | code help+videos | done | prefs |
APCS String 2, Problem 11. Given a string, return the longest substring that appears at both the beginning and end of the string without overlapping. For example, sameEnds("abXab") is "ab". S211_sameEnds("abXYab") → "ab" S211_sameEnds("xx") → "x" S211_sameEnds("xxx") → "x" ...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