Reported September 2024
Ciscohash table

Find Machine Count

Reported by candidates from Cisco's online assessment. Pattern, common pitfall, and the honest play if you blank under the timer.

Get StealthCoderRuns invisibly during the live Cisco OA. Under 2s to a working solution.
Founder's read

Cisco's September 2024 OA included a problem asking you to find a machine count. Without the full problem text, the exact scenario is unclear, but this type of problem typically involves parsing data structures, counting occurrences, or tracking state across a system. You're probably looking at either a straightforward counting loop or a slightly clever use of a hash table to aggregate results. StealthCoder reads the problem on screen during your OA and surfaces the pattern instantly if you blank on the approach.

Pattern and pitfall

Machine count problems at Cisco tend to fall into two buckets: counting distinct machines in a log or data structure, or determining how many machines meet a threshold or condition. The pitfall is overthinking state management. Most candidates jump to complex tracking when a simple hash map or set solves it. The live trick is recognizing whether you're counting unique machines (use a set), summing resources per machine (use a dict), or filtering by a rule (iterate and count). StealthCoder acts as your safety net if the problem statement is ambiguous or you freeze on the data structure choice during the OA.

If this hits your live OA and you blank, StealthCoder solves it in seconds, invisible to the proctor.

If this hits your live OA

You can drill Find Machine Count cold, or you can hedge it. StealthCoder runs invisibly during screen share and surfaces a working solution in under 2 seconds. The proctor sees the IDE. They don't see what's behind it. Built by an Amazon engineer who would have shipped this the night before his JPMorgan OA if he'd had it.

Get StealthCoder

Related leaked OAs

⏵ The honest play

You've seen the question. Make sure you actually pass Cisco's OA.

Cisco reuses patterns across OAs. Built by an Amazon engineer who would have shipped this the night before his JPMorgan OA if he'd had it. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Find Machine Count FAQ

Is this a hash table problem or something harder?+

Usually hash table or set. Cisco OAs rarely ask for advanced patterns like DP or graph algorithms in the 'find count' family. If you're storing machines as keys and tracking properties as values, you're on the right track. Implement first, optimize if it times out.

What's the common mistake candidates make?+

Overthinking state. They try to track relationships between machines or build complex indexes when the problem just wants you to count or sum. Read carefully: are you counting unique machines, or machines matching a condition. That distinction changes your data structure.

How do I prepare for this in 48 hours?+

Review hash map and set operations. Practice one problem where you count distinct elements and one where you filter a list by a condition. Cisco's OA tends to reward clean, simple solutions over clever optimizations. Correctness first.

Is this problem still asked at Cisco?+

Yes. As of September 2024, this type of counting/aggregation problem is still in rotation. Cisco's OAs emphasize foundational data structure skills, and counting problems are a reliable way to test that.

Should I worry about performance or focus on correctness?+

Correctness first. If your solution is O(n) or O(n log n) with a hash map, it'll pass. Cisco doesn't usually penalize reasonable solutions. Make sure your logic is sound before you chase microseconds.

Problem reported by candidates from a real Online Assessment. Sourced from a publicly-available candidate-aggregated repository. Not affiliated with Cisco.

OA at Cisco?
Invisible during screen share
Get it