Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Parity Bit Generator by flpo
def checkio(data):
numbers_parity = map(lambda s: (s[:-1], s[-1]), map('{0:b}'.format, data))
return ''.join(
chr(int(n, 2)) for n, p in numbers_parity if n.count('1') % 2 == int(p)
)
July 13, 2017