Find the missing permutation: Difference between revisions
m
→Python:Folding XOR over the set of strings: tidying
m (→JS :: XOR: Slight reduction) |
m (→Python:Folding XOR over the set of strings: tidying) |
||
Line 2,597:
chr(i) for i in reduce(
lambda a, s: map(
xor
a,
[ord(c) for c in list(s)]
), [
'ABCD', 'CABD', 'ACDB', 'DACB
'
'
'
'DCBA', 'BACD', 'BADC', 'BDAC',
'CBDA', 'DBCA', 'DCAB'
],
[0, 0, 0, 0]
|