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

36.98% Correct | 63.02% Incorrect
Last Solution submitted on Mar 31, 2020

Problem Comments