IP Address / CIDR Iterator
OpenAI interview questions · Hard · Coding round · reported 16× · 6 tests
Once you model IPv4 addresses as 32-bit integers, the main trap is choosing the largest aligned power-of-two block that does not overshoot the remaining range.
The full question, tests and reference solution are available with a plan that includes OpenAI.
Run your code with Ctrl+Enter to see results.