Created
September 3, 2019 23:16
-
-
Save nikasulo/2a9f61acc02a2eed14f71bb8418e0e9a to your computer and use it in GitHub Desktop.
brute force solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while string.include?('gn') | |
string.gsub!("gn", 'ng') | |
end | |
puts string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment