YourAlly

Cisco Senior staff coding interview questions

These are the 3 coding questions YourAlly has tagged for Cisco at Senior staff. On the YourAlly ladder this is Senior staff, the same level as Google L7, Meta E7 and Amazon L8.

A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level coding is often a smaller part of the loop, but the bar for clarity and speed stays high.

Practice a mock Cisco Senior staff coding loopPractice Cisco coding questions

Find Shadowed ACL RulesFree to read

An access list is evaluated top to bottom and each rule matches an inclusive destination port range [lo, hi]. A rule is shadowed if every port it matches is already matched by some earlier rule. Return the indices of shadowed rules in ascending order.

Input: rules = [[20, 30], [25, 28], [10, 19], [10, 30], [31, 40]] Output: [1, 3]

What a strong answer covers

  • Recognizes coverage can come from several earlier rules
  • Uses the bounded port space for a next-uncovered-port union-find
  • Marks each port covered at most once and skips covered stretches with find
  • Handles touching ranges without special cases
  • Explains why list splicing degrades to O(n^2) and states an honest bound

2 more coding questions

  1. Admit Bandwidth Reservations Locked
  2. Widest Path With Lowest Latency Locked

Sign up free to practice all 3

Related pages

Cisco coding at other levels

Other companies at this level