Cody

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

37.37% Correct | 62.63% Incorrect
Last Solution submitted on Jun 16, 2020

Problem Comments

Problem Recent Solvers176

Suggested Problems

More from this Author9

Problem Tags