NeetCode #880LC-751MediumBit Manipulation
← Back to All Problems#880 · #751 · IP to CIDR(IP 到 CIDR)
📌 Problem Statement & Constraints
Given a start IPv4 address
ip and an integer n, return the smallest list of CIDR blocks that together cover every address from ip through ip + n - 1. Constraints: ip is a valid IPv4 address and 1 <= n <= 1000.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!