Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
function overdose solution in Clear category for Parity Bit Generator by minto
l=list
f=filter
b=bin
i=int
c=chr
m=map
e=eval
j=lambda g:g.join
y=lambda s:c(i(b(s)[2:-1],2))
z=lambda n:e(j("+")(l(b(n)[2:-1])))%2==i(b(n)[-1])
checkio=lambda w:j("")(l(m(y,f(z,w))))
if __name__ == '__main__':
#These "asserts" using only for self-checking and not necessary for auto-testing
assert checkio([135, 134, 124, 233,
209, 81, 42, 202,
198, 194, 229, 215,
230, 146, 28, 210,
145, 137, 222, 158,
49, 81, 214, 157]) == "Checkio"
assert checkio([144, 100, 200, 202,
216, 152, 164, 88,
216, 222, 65, 218,
175, 217, 248, 222,
171, 228, 216, 205,
254, 201, 193, 220]) == "Hello World"
Jan. 30, 2016
Comments: