Skip to content

Instantly share code, notes, and snippets.

@cocodrips
Last active December 24, 2015 17:49
Show Gist options
  • Save cocodrips/6838547 to your computer and use it in GitHub Desktop.
Save cocodrips/6838547 to your computer and use it in GitHub Desktop.
SRM587 Div2 250 InsertZ
public class InsertZ {
public String canTransform(String init, String goal) {
String ansString = goal.replaceAll("z", "");
if (ansString.equals(init)) {
return "Yes";
}
return "No";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment