Last active
December 24, 2015 17:49
-
-
Save cocodrips/6838547 to your computer and use it in GitHub Desktop.
SRM587 Div2 250 InsertZ
This file contains hidden or 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
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