Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Word Pattern by gyahun_dash
def check_command(pattern, command):
binpattern = '{:0={}b}'.format(pattern, len(command))
bincommand = ''.join('1' if c.isalpha() else '0' for c in command)
return binpattern == bincommand
May 14, 2014
Comments: