Problem 288. Construct a string from letters and counts

Given two input arrays like this: [5,3,1] ['a','b','c']

Output a string that contains each letter the specified number of times, e.g.:


If given an invalid input (for example, a negative number), output the string 'ERROR'.

Solution Stats

33.26% Correct | 66.74% Incorrect
Last Solution submitted on Jun 18, 2020

Problem Comments

Problem Recent Solvers142

Suggested Problems

More from this Author3

Problem Tags