about | help | code help+videos | done | prefs |
repeatMe0
Given a String and two integers, m and n, return a String where each of the first m letters is repeated n times. repeatMe0("abc", 2, 3) → "aaabbb" repeatMe0("abc", 3, 2) → "aabbcc" repeatMe0("a", 1, 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: 210
Copyright Nick Parlante 2017 - privacy