Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Word Pattern by Tinus_Trotyl
def check_command(pattern, command):
compat = 0
for i in command:
compat *= 2
if "A" <= i.upper() <= "Z" : compat += 1
return pattern == compat
May 29, 2017
Comments: