Databricks·Software Engineer·Technical Phone Screen
- Given a list of CIDR rules each tagged as approve or reject, and a query IP address, determine whether the IP is approved or rejected using longest-prefix-match semantics. If no rule matches, default to reject.
“I parsed the CIDR blocks into integer intervals first, which worked for basic membership checks but felt clunky when they asked about efficiency at scale.”