You are viewing a single comment's thread. Return to all comments →
I like your backref solution. Here's a ruby spin on your theme:
s = gets.strip s.gsub!($~.to_s, '') while s.match(%r{(\w)(\1)}) puts s.empty? ? 'Empty String' : s
Seems like cookies are disabled on this browser, please enable them to open this website
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
I like your backref solution. Here's a ruby spin on your theme: