Daily Challenge #21

C*ns*r*d Str*ngs

Someone has attempted to censor my strings by replacing every vowel with a * , l*k* th*s . Luckily, I’ve been able to find the vowels that were removed.

Given a censored string and a string of the censored vowels, return the original uncensored string.

Example

uncensor(“Wh*r* d*d my v*w*ls g*?”, “eeioeo”) ➞ “Where did my vowels go?”
uncensor(“abcd”, “”) ➞ “abcd”
uncensor("*PP*RC*S*", “UEAE”) ➞ “UPPERCASE”

Notes

The number of vowels will match the number of * characters in the censored string.

8 Likes

One way:

9 Likes

Great job @Italo. :+1::+1::+1::+1::+1:

2 Likes

* th**ght f*rst *t w*s *b***t to d*v*l*p an AI which g**ss*s the m*ss*ng vowevls.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.