Reported interview periodFeb 2026–Sep 2026
IPv4 and CIDR Iterator
Implement an iterator that walks IPv4 addresses from a seed, either forward, backward, or within the seed's CIDR block.
Practice focusRequirements - Accept a plain IPv4 address or CIDR such as 10.2.3.4/24 . - Include the seed as the first result. - Forward iteration ends at 255.255.255.255 or the block broadcast address. - Backward iteration ends at 0.0.0.0 or the block network address. - Validate octets, prefix lengths, and direction; raise StopIteration after exhaustion. - Use integer address arithmetic rather than incrementing dotted components as strings. State whether network and broadcast addresses are included; for this problem, include both boundaries. Follow-ups 1.…