Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Word Pattern by janpaweldrugi
def check_command(pattern, command):
command = ['0' if c.isdigit() else '1' for c in command]
command = int(''.join(command), 2)
return command == pattern
May 16, 2014
Comments: