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.16% Correct | 61.84% Incorrect
Last Solution submitted on Dec 07, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers224

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!