Cisco OA 2025 | IP Route Optimization via Bitwise Prefix Masking & Minimum Cost Server Routing Path
Cisco · Question · Posted Jun 2026
Problem 1 - IP Route Optimization via Bitwise Prefix Masking Problem Statement You are configuring an enterprise core router. The router receives a collection of IPv4 addresses represented as an array of 32-bit integers ipAddresses. To optimize the routing table, determine the longest common bit prefix shared by all IP addresses. Starting from the most significant bit (MSB), count how many consecutive bits are identical across every address until the first differing bit is encountered. Return the length of this ...
The full answer & interview discussion are available to premium members.
Log in Create a free account