MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

101 correct solutions
192 incorrect solutions

Last solution submitted on May 15, 2015

1 player likes this problem

1 Comment