← Questions

Ordered IP firewall with CIDR rules

0
DatabricksCodingLast asked Sep 2026

A coding interview question asked in Databricks's algorithms (two rounds) round, last asked Sep 2026. It tests bit manipulation, intervals and design.

Implement an IPv4 firewall that checks addresses against an ordered list of rules. Each rule is a pair (action, target). action is "ALLOW" or "DENY". target is either a single IPv4 address ("192.168.0.9", which means /32) or a CIDR block…

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

What it tests

bit manipulation · intervals · design · networking

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