An IPv"a.b.c.d", where a, b, c, and d are integers in the range
A CIDR block is written in the form "a.b.c.d/len", where "a.b.c.d" is the starting IP address and len is an integer representing the prefix length in bits. A CIDR block with length len covers len bits.
Given a starting IPvip and an integer n, return a list of CIDR blocks that covers the range of n consecutive IP addresses starting at ip. The resulting list must cover every IP address in the range exactly once, contain no IP addresses outside the range, and use the minimum possible number of CIDR blocks.
Constraints:
ip.length
ip is a valid IPv"a.b.c.d" where a, b, c, and d are integers in the range
n
Every implied address ip + x (for
An IPv"a.b.c.d", where a, b, c, and d are integers in the range
A CIDR block is written in the form "a.b.c.d/len", where "a.b.c.d" is the starting IP address and len is an integer representing the prefix length in bits. A CIDR block with length len covers len bits.
Given a starting IPvip and an integer n, return a list of CIDR blocks that covers the range of n consecutive IP addresses starting at ip. The resulting list must cover every IP address in the range exactly once, contain no IP addresses outside the range, and use the minimum possible number of CIDR blocks.
Constraints:
ip.length
ip is a valid IPv"a.b.c.d" where a, b, c, and d are integers in the range
n
Every implied address ip + x (for