Infinite Dogs on a Sidewalk

Proportion of Dogs and Cats on Sidewalk is a medium quant interview question on Brain Teasers, reported to have been seen at Old mission.

Difficulty Medium Topic Brain Teasers Reported at Old mission

MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.

This brain teaser is about understanding long-run behavior in an endless sequence where local follow-on rules between two types of animals are fixed. It turns an apparently simple street puzzle into a question about equilibrium proportions that emerge when local randomness repeats indefinitely. Unlike finite counting puzzles, the focus here is on how stable global ratios arise from consistent local transition patterns.

It trains comfort with steady-state thinking, stationary distributions, and probabilistic balance conditions that are central to Markov-style reasoning. The candidate must translate verbal constraints into proportional relations and reason about equilibrium without relying on simulation or quick numerical guessing. It also builds intuition for flows between states and consistency conditions over an infinite horizon.

This matters for quant interviews because many roles at top trading firms rely on understanding long-run distributions, transition dynamics, and invariant measures. Modern quant prep emphasizes these skills for pricing models, risk engines, and algorithmic trading systems, where payoffs depend on limiting behavior rather than one-off events. Being fluent in such puzzles signals readiness for more technical stochastic-process questions that appear in real quant interviews across prop shops, hedge funds, and banks.

What it tests

This class of problems is governed by the principle of steady-state (or long-run) proportions in Markov chains or infinite sequences with local transition rules. When the probability of one type of object following another is fixed, the overall composition stabilizes to values determined by these transition probabilities, not by local counts alone. The key is that, over a long sequence, the fraction of time spent in each state must be consistent with the transition rules: the flow into a state equals the flow out. This equilibrium arises because, as the sequence grows, the effect of the starting point vanishes, and only the relative likelihoods of moving between states matter. The steady-state is found by solving for the stationary distribution, which balances the transitions in and out of each state.

Practise this question with written feedback, or hear it in a spoken mock interview.

Get started free