← Questions

IPv4 range iterator with reverse and CIDR support

0
OpenAIAnthropicCodingLast asked Sep 2026

A coding interview question asked in OpenAI's agentic coding (beta) round and at Anthropic, last asked Sep 2026. It tests iterator, bit manipulation and networking.

An IPv4 address such as "172.16.4.9" is four octets, each 0 to 255. Taken together, the octets form one unsigned 32-bit number.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • OpenAI · Agentic coding (beta) · Last asked Sep 2026An existing codebase and changes too large to write by hand; you work through them with an AI coding agent · An AI coding agent is expected
  • Anthropic · Live technical screen · Last asked Jan 202655 min · One engineer on video with screen share, usually in CodeSignal (Google Colab for research roles), Python by default; one practical problem that grows in parts · No AI; looking up documentation and searching the web is fine

What it tests

iterator · bit manipulation · networking

Your code and the AI tutor open when you unlock this question.