IP Address / CIDR Iterator (5-part)

Medium · Coding · 55 min

Implement an IPv4 iterator supporting forward and reverse traversal, 32-bit CIDR block bounds, custom step sizes, batch reads, O(1) membership checks, and O(1) remaining counts.

This is a Pro problem. Pro unlocks the full prompt, a step-by-step walkthrough, a reference solution and tests you can run.

See Pro plans

More OpenAI problems