Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for IP Network: Route Summarization by droonkid
# migrated from python 2.7
def checkio(data):
data=["".join([bin(int(y))[2:].rjust(8,"0") for y in x.split(".")]) for x in data]
for n in range(32):
if any([x for x in data if x[:n]!=data[0][:n]]):
o=".".join(repr(int(map(lambda x:x[:n-1].ljust(32, "0"), data)[0][x-8:x], 2)) for x in range(8, 33, 8))
return o+"/"+repr(n-1)
March 22, 2016