You are viewing a single comment's thread. Return to all comments →
Java solution:
public static String superReducedString(String s) { while (s != (s = s.replaceAll("([a-z])\\1{1,1}", ""))){} return s.isEmpty()? "Empty String" : s; }
Super Reduced String
You are viewing a single comment's thread. Return to all comments →
Java solution: