Skip to content

Instantly share code, notes, and snippets.

@sehajyang
Last active March 21, 2019 04:29
Show Gist options
  • Save sehajyang/d55a5abbaee5aa2c7680cd34a67b104c to your computer and use it in GitHub Desktop.
Save sehajyang/d55a5abbaee5aa2c7680cd34a67b104c to your computer and use it in GitHub Desktop.
def solution(n, arr1, arr2):
result = []
for i in range(n):
s = bin(arr1[i] | arr2[i])[2:].zfill(n)
result.append(s.replace("1", "#").replace("0", " "))
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment