YourAlly

Cisco Senior coding interview questions

These are the 6 coding questions YourAlly has tagged for Cisco at Senior. On the YourAlly ladder this is Senior, the same level as Google L5, Meta E5 and Amazon L6.

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 the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.

Practice a mock Cisco Senior coding loopPractice Cisco coding questions

Admit Bandwidth ReservationsFree to read

A link has a fixed capacity. Reservation requests [start, end, bandwidth] arrive in order and cover the half-open time range [start, end). Accept a request only if, at every moment in its range, already accepted bandwidth plus its own stays within capacity. Return the indices of accepted requests.

Input: requests = [[0, 10, 6], [5, 15, 5], [10, 20, 4], [0, 5, 4]], capacity = 10 Output: [0, 2, 3]

What a strong answer covers

  • Identifies range-max plus range-add as the core operations
  • Compresses coordinates and maps half-open ranges correctly
  • Implements a lazy segment tree in O(log n) per operation
  • Leaves rejected requests out of the tree
  • Compares against an O(n^2) sweep

5 more coding questions

  1. Find Shadowed ACL Rules Locked
  2. Longest Prefix Match Forwarding Locked
  3. Network Segments After Link Failures Locked
  4. Reorder Buffer Release Counts Locked
  5. Widest Path With Lowest Latency Locked

Sign up free to practice all 6

Related pages

More Cisco Senior rounds

Cisco coding at other levels

Other companies at this level