about | help | code help+videos | done | prefs |
Given a string str, make a copy from the given start index to the end index, n times, and return the new string. The start, end, and n are int parameters. We can assume the str won't be an empty string, and the start value is always less than equal the end value, and both are always acceptable and in the range. getCopy("abc", 0, 1, 3) → "ababab" getCopy("Hello", 0, 4, 1) → "Hello" getCopy("a", 0, 0, 5) → "aaaaa" ...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: 120
Copyright Nick Parlante 2017 - privacy