Last active
March 21, 2019 04:29
-
-
Save sehajyang/d55a5abbaee5aa2c7680cd34a67b104c to your computer and use it in GitHub Desktop.
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
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