New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Snowflake
Coding Question
AI Insights
Quick Summary
Resolve IPv4 queries against a set of CIDR routing prefixes.
Return the nextHop for the longest matching prefix that contains the query IP.
Handle overlapping and nested network ranges efficiently.
What This Tests
Binary conversion and bitwise manipulation of IP addresses
Trie construction and path traversal for prefix storage
Longest prefix matching algorithms
Efficient handling of overlapping intervals
Common Patterns
Trie
Bit Manipulation
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected