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.61% Correct | 67.39% Incorrect
Last solution submitted on Aug 29, 2019

Problem Comments

Problem Recent Solvers113

Suggested Problems

More from this Author3

Problem Tags