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

32.7% Correct | 67.3% Incorrect
Last Solution submitted on Jan 02, 2020

Problem Comments

Problem Recent Solvers114

Suggested Problems

More from this Author3

Problem Tags