8 kyu
Contamination #1 -String-
8,129 of 19,664John Brekker
Description:
An AI has infected a text with a character!!
This text is now fully mutated to this character.
Starting with the original text, and given a character, return the text once it has been mutated so that all of the characters in the original text have been replaced with the character.
If the text or the character are empty, return an empty string.
There will never be a case when both are empty as nothing is going on!!
Note: The character is a string of length 1 or an empty string.
Example
text before = "abc"
character = "z"
text after = "zzz"
Strings
Fundamentals
Similar Kata:
Stats:
Created | Jul 19, 2017 |
Published | Jul 19, 2017 |
Warriors Trained | 25083 |
Total Skips | 619 |
Total Code Submissions | 36276 |
Total Times Completed | 19664 |
Python Completions | 8129 |
JavaScript Completions | 8592 |
Ruby Completions | 518 |
Crystal Completions | 33 |
C# Completions | 1089 |
Haskell Completions | 294 |
Go Completions | 1133 |
Rust Completions | 452 |
D Completions | 18 |
RISC-V Completions | 32 |
CoffeeScript Completions | 11 |
Scala Completions | 39 |
Total Stars | 138 |
% of votes with a positive feedback rating | 92% of 2212 |
Total "Very Satisfied" Votes | 1914 |
Total "Somewhat Satisfied" Votes | 259 |
Total "Not Satisfied" Votes | 39 |
Total Rank Assessments | 13 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |