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.5% Correct | 62.5% Incorrect
Last solution submitted on Aug 12, 2019

Problem Comments

Recent Solvers148

Suggested Problems

More from this Author9