Answer the question
In order to leave comments, you need to log in
How to remove duplicate words in a string in ruby?
A certain line comes to me, I need to remove duplicate words if they are nearby, and the registers may differ, you always need to delete the second word.
example:
Hello Hello my name Name Is is John john yes Yes John
Hello my name Is John yes John
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question