IP range to CIDR blocks

0
Remix

Given a starting IPv4 address and a count n, return the shortest list of CIDR blocks that covers exactly the n consecutive addresses starting there, and no address outside that range.

DatabricksCodingLast asked Jan 2026
No answer yet. Write the first one; the best answer gets endorsed.