about | help | code help+videos | done | prefs |
Given a string str and a non-negative integer n, return a new string consisting of n copies of str. repeatN("cat", 2) → "catcat" repeatN("house", 3) → "househousehouse" repeatN("boat", 1) → "boat" ...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