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.:

    'aaaaabbbc'

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

Solution Stats

503 Solutions

146 Solvers

Last Solution submitted on Dec 03, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers146

Suggested Problems

More from this Author3

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!