about | help | code help+videos | done | prefs |
APCS String 1, Problem 14. Given a string and an int N, return a string made of N repetitions of the last N characters of the string. You may assume that N is between 0 and the length of the string, inclusive. S114_repeatEnd("Hello", 3) → "llollollo" S114_repeatEnd("Hello", 2) → "lolo" S114_repeatEnd("Hello", 1) → "o" ...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: 100
Copyright Nick Parlante 2017 - privacy