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
encoded_text = input("Paste Encoded Text: ") # the encoded text might look like: 牰湩⡴栢汥潬眠牯摬⤢ | |
print(bytes(encoded_text, "u16")[2:].decode("ascii")) |
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
public String starOut(String str) { | |
String newStr = ""; | |
int[] stars = new int[str.length()]; | |
for (int i = 0; i < str.length(); i++) { | |
if (str.substring(i, i+1).equals("*")) { | |
if (i != 0) { | |
stars[i-1] = 1; | |
} | |
stars[i] = 1; | |
if (i + 1 < stars.length) { |
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
public String starOut(String str) { | |
String newStr = ""; | |
int[] stars = new int[str.length()]; | |
for (int i = 0; i < str.length(); i++) { | |
if (str.substring(i, i+1).equals("*")) { | |
if (i != 0) { | |
stars[i-1] = 1; | |
} | |
stars[i] = 1; | |
if (i + 1 < stars.length) { |