Problem 1461. Duplicate a character

Duplicate a character 'n' times.

Example 1: str='a' n=5

output='aaaaa'

Example 2: str='*' n=3

output='***'

Solution Stats

38.1% Correct | 61.9% Incorrect
Last Solution submitted on Nov 17, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers231

Suggested Problems

More from this Author9

Problem Tags

Community Treasure Hunt

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

Start Hunting!