+ 7
Challenge: bad words dimmer 🙊🙊🙊⛔⛔⛔
Are you able to write a program that replace all bad words in a string (inserted by a user) with some characters like "@$*!#" but randomly chosen? List of bad words : "hi, how, you, hello, red, chocolate, tree, sea, sun, java" 😝😂 and other if you want. If "hi" is a curse word also "Hi", "HI" and "hI" are bad. Example: "Hi, how are you?" >> "@$, **@ are #$#?"
15 Respuestas
+ 13
https://code.sololearn.com/cGt6Olt1iqf4/?ref=app
+ 5
Thanks @Leo from everyone
+ 5
A very <s>simple</s> buggy approach in Ruby:
--> https://code.sololearn.com/cBYENKGA1dBd/
Very funny &%$#% challenge!
+ 3
here you are you #$%%^$÷
https://code.sololearn.com/c9e128D9356F/?ref=app
+ 3
my practice on python https://code.sololearn.com/cVkA2rO3h9kF/#py
+ 1
@maz I got some problems with your code
+ 1
@joshi ehm...what?
+ 1
@Andrea lol...my bad. Should have posted in a different thread.
+ 1
good old c++ code...
https://code.sololearn.com/cSztuQv6PVnY/#cpp
Edit: Just realized (again..in my life) that I'm absent minded. Will post the proper code soon enough (If... I remember that XD )
0
if(n1.value != "" && n2.value != "") what does this means??
- 1
هلا