IP to CIDR

Given a range of IPv4 addresses, return the minimal list of CIDR blocks that cover the entire range. Each block is represented as ip/prefix where the prefix length indicates how many leading bits are fixed.

Examples
Input: ["0.0.0.0","0.0.0.255"]
Output: ["0.0.0.0/24"]
Hints

IP to CIDR

Given a range of IPv4 addresses, return the minimal list of CIDR blocks that cover the entire range. Each block is represented as `ip/prefix` where the prefix length indicates how many leading bits are fixed.