Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Assault of batteries solution in Clear category for IP Network: Route Summarization by veky
def checkio(data):
from ipaddress import IPv4Address, IPv4Network
ipmin, *_, ipmax = sorted(map(IPv4Address, data))
spread = (int(ipmin) ^ int(ipmax)).bit_length()
return str(IPv4Network(ipmin).supernet(spread))
March 13, 2016
Comments: