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

Stats:

CreatedJul 19, 2017
PublishedJul 19, 2017
Warriors Trained25083
Total Skips619
Total Code Submissions36276
Total Times Completed19664
Python Completions8129
JavaScript Completions8592
Ruby Completions518
Crystal Completions33
C# Completions1089
Haskell Completions294
Go Completions1133
Rust Completions452
D Completions18
RISC-V Completions32
CoffeeScript Completions11
Scala Completions39
Total Stars138
% of votes with a positive feedback rating92% of 2212
Total "Very Satisfied" Votes1914
Total "Somewhat Satisfied" Votes259
Total "Not Satisfied" Votes39
Total Rank Assessments13
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • John Brekker Avatar
  • ZozoFouchtra Avatar
  • GiacomoSorbi Avatar
  • anter69 Avatar
  • donaldsebleung Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • JohanWiltink Avatar
  • Voile Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • uniapi Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • Just4FunCoder Avatar
  • yLaWy Avatar
  • KayleighWasTaken Avatar
Ad