Search
⌘K
IPv4 Address Iterator
Implement an iterator that traverses IPv4 addresses starting from a given address, supporting forward iteration, reverse iteration, and CIDR block iteration.
Asked at:
OpenAI
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early March, 2026
OpenAI
Senior
Mid February, 2026
OpenAI
Senior
Mid October, 2025
OpenAI
Staff
Given an ipv4 address write an iterator to print the next address. Backwards iterator Iterator that supports CIDR prefixes
Hello Interview Premium
Your account is free and you can post anonymously if you choose.