about | help | code help+videos | done | prefs |
Write a recursive method that returns a string with 'num' copies of 'letter'. Your solution MUST be recursive. This can be done in one line, but you are not required to do it in one line. recursiveLetters(5, "x") → "xxxxx" recursiveLetters(0, "a") → "" recursiveLetters(1, "W") → "W" ...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: 390
Copyright Nick Parlante 2017 - privacy