Fin Maverick
Foundations VocabularyAccounting & ReportingEconomics & MacroQuant Methods & ProgrammingBusiness & Company AnalysisCorporate Finance & ValuationBehavioural Finance
Banking & Market InfrastructureFixed Income & RatesDerivatives & Structured ProductsPublic EquitiesTransactions & DealsPortfolio ConstructionFunds & AMCs
Private Markets & AlternativesRisk, Treasury & ControlAI & Digital FinanceStochastic Calculus & PricingWealth & Personal FinanceIndian Markets & RegulationProfessional Practice
Explore NISM prep
Series-VIII · Equity DerivativesSeries-XII · Securities Markets FoundationSeries-V-A · Mutual Fund DistributorsSeries-XV · Research AnalystSeries-XIX-E · Category III AIF ManagersSeries-XIX-D · Category I & II AIF ManagersSeries-XIX-C · Alternative Investment Fund ManagersSeries-XVI · Commodity DerivativesSeries-VI · Depository OperationsSeries-II-A · Registrars & Transfer AgentsSeries-I · Currency DerivativesSeries-VII · Securities Operations & Risk Management
Explore Bootcamps
Equity ResearchPortfolio ManagementMutual Fund MasteryInvestment Banking Analyst
Private Equity AnalystQuant & Hedge Fund AnalystBreaking Into VCFinancial Analyst Program
Risk Management ProgramPrivate Wealth ManagementDebt Capital MarketsDerivatives Foundation
Explore Free Courses

Equity Research6

Writing an Investment ThesisBuilding a Discounted Cash FlowReading an Annual Report FastReading a Sector Before a CompanySpotting Quality of Earnings Red FlagsBuilding a Revenue Forecast From Drivers

Portfolio Management3

Rebalancing: When, Why and What It CostsStrategic and Tactical Asset AllocationMeasuring Risk in a Portfolio

Mutual Fund Mastery3

Comparing Funds Without Being FooledHow a NAV Is Struck and Which Day You GetReading a Fund Factsheet Properly

Derivatives Unlocked4

Hedging a Real ExposureThe Greeks, PracticallyFutures, the Basis and What Moves ItReading an Option Payoff

AI For Finance2

Retrieval and Grounding for FinanceDocument Extraction in Finance

Breaking Into Quants4

Backtesting a StrategyHypothesis TestingCleaning Financial DataRegression for Finance

Breaking Into VC3

Sizing a MarketReading a Term Sheet as a FounderHow a Venture Round Actually Works

Financial Analyst Program4

Common Size and Trend AnalysisReading a Cash Flow StatementRatio Analysis That Says SomethingBuilding a Working Capital Schedule

Risk Management Program2

Credit Exposure and How It Is ReducedValue at Risk and What It Hides

Investment Banking Analyst3

Precedent Transactions and Why They DifferReading a Term Sheet StructurallyBuilding a Comparable Companies Table

Private Wealth Management3

Tax Aware Portfolio DecisionsBuilding a Client Risk ProfileGoal Based Planning Arithmetic

Debt Capital Markets3

Analysing an Issuer's CreditDuration and What It Does Not Tell YouBond Pricing and Yield Mechanics

Private Equity Analyst2

Fund Waterfalls and CarryThe LBO in Structure

Hedge Funds Analyst2

Short Selling MechanicsLong Short Mechanics
QuarksCourses
Explore Interview Preparation
Investment BankingEquity ResearchVenture CapitalistPrivate EquityHedge Funds
QuantFinancial AnalysisPrivate Wealth ManagementDebt Capital MarketsRisk Management
Derivatives FoundationPortfolio ManagementMutual Fund Mastery
PartnershipsShowdown
Log inSign up
Interview tracksAll
1Investment Banking
Question bankPuzzlesCase studies
2Equity Research
Question bankPuzzlesCase studies
3Venture Capital
Question bankPuzzlesCase studies
4Private Equity
Question bankPuzzlesCase studies
5Hedge Funds
Question bankPuzzlesCase studies
6Quant
Question bankPuzzlesCase studies
7Financial Analysis
Question bankPuzzlesCase studies
8Private Wealth Management
Question bankPuzzlesCase studies
9Debt Capital Markets
Question bankPuzzlesCase studies
10Risk Management
Question bankPuzzlesCase studies
11Derivatives Foundation
Question bankPuzzlesCase studies
12Portfolio Management
Question bankPuzzlesCase studies
13Mutual Fund Mastery
Question bankPuzzlesCase studies

Quant puzzles, solved step by step

Puzzles
100
Traced to a firm
71
Topics
12
Hard
30
Topic
All topicsLogic and algorithmic reasoning10Conditional probability and Bayes7Counting and combinatorics8Continuous and geometric probability9Correlation, regression and linear algebra9Market making, betting and sizing9Expected value and optimal stopping9Statistics and estimation9Pricing, options and index maths7Games and strategic reasoning8Markov chains and random walks7Mental maths and number sense8
Level
AnyWarm upCoreHard
Source
AnyReported at a firmStandard
Showing 31–40 of 50 · filtered from 100Clear filters
  1. 060In how many ways can you place four queens on a 4 by 4 board so that no queen attacks another? How would you organise the search, and what does the same method give for five queens on a 5 by 5 board?Logic and algorithmic reasoningCoreGoldman SachsNew York · 2026

    Try it first

    How many non-attacking placements of four queens exist on a 4 by 4 board?

    Show the worked solution

    Two on a 4 by 4 board and 10 on a 5 by 5 board. Place one queen per row, trying columns left to right, and abandon a branch the moment the next row has no safe column. On 4 by 4 this visits 16 placements and finds columns 2, 4, 1, 3 and 3, 1, 4, 2. On 5 by 5 the same search visits 53 placements, against 3,125 boards for brute force.

    How do you organise the search so it stays small?

    Think of filling a seating plan for a wedding where some guests cannot sit near each other. You seat table by table, and the moment a table has no acceptable guest left you undo the previous choice instead of finishing a doomed plan. Backtracking builds the answer one decision at a time and abandons a partial answer as soon as it breaks a rule, so it never enumerates the boards that fail early. For queens, two rules come free from the structure: one queen per row, and one per column, which leaves only the diagonals to check at each step.

    Place row by row, abandon a branch the moment it has no safe squarerow 1row 2row 3row 4start13dead end42dead end2413solution3142solution413dead end2dead endNumber in each circle = the column chosen for that row2 4 1 33 1 4 24 x 4: 16 placements tried,2 solutions5 x 5: 53 placements tried,10 solutionsBrute force: 4^4 = 256 and5^5 = 3,125 full boards
    Row by row, the search tries 16 placements on the 4 by 4 board; four branches die when a row has no safe column, and two reach row 4, giving the solutions 2, 4, 1, 3 and 3, 1, 4, 2.

    How does the 4 by 4 search actually run?

    Start with the corner. A queen in column 1 of row 1 leaves row 2 only columns 3 and 4, and both paths run out of safe squares by row 3 or row 4, so no solution uses a corner queen. A queen in column 2 forces column 4 in row 2, then column 1 in row 3 and column 3 in row 4, which works. Columns 3 and 4 are mirror images of 2 and 1. So there are exactly two solutions, and they are reflections of each other. Saying the symmetry out loud halves the work and is exactly what an interviewer building up from a base case wants to hear.

    What changes on 5 by 5, and how does the method scale?

    The larger board has more room, and every row 1 column leads somewhere. The same search finds 10 solutions after 53 placements, while brute force over one queen per row would test 3,125 boards. On 8 by 8 it finds all 92 solutions in 2,056 placements out of 16,777,216 one-per-row boards. In code, keep three sets, used columns, used down-diagonals (row minus column) and used up-diagonals (row plus column), so each safety check is constant time.

    Where candidates lose it

    Candidates start listing boards by eye and lose track, or they try all C(16, 4) = 1,820 ways to place four queens anywhere. The interviewer wants the structure: one per row, a column choice per row, and pruning.

    The second loss is counting the two 4 by 4 solutions as four or eight by treating rotations as new. Say whether you count symmetric boards as distinct, and note that here the two solutions are each other's mirror image.

    What the interviewer asks next

    • Write the backtracking function and state its time complexity in the worst case.
    • How would you count solutions up to rotation and reflection?
    • Why do the 2 by 2 and 3 by 3 boards have no solution at all?

    Asked at Goldman Sachs, Quantitative Research, New York, 2026 (Wall Street Oasis): I was asked a backtracking question in 1 of the rounds in the superday.

  2. 061A Rs 1,000 crore fund charges a 2% management fee and 20% of gains, with the performance fee taken on the gain left after the management fee. In a year with a 10% gross return, the manager cuts the management fee to 1%. What performance fee keeps the manager's revenue unchanged?Mental maths and number senseCoreTwo SigmaNew York · 2026

    Try it first

    Which performance fee keeps revenue at the old level?

    Show the worked solution

    About 28.9%, roughly 29%. Under 2 and 20 the manager earns Rs 20 crore of management fee plus 20% of the remaining Rs 80 crore gain, Rs 36 crore in all. At 1% the management fee is Rs 10 crore and the gain left is Rs 90 crore, so the performance fee must bring in Rs 26 crore: 26 / 90 = 28.9%. It only balances at a 10% return.

    Why is the answer not simply 30%?

    Think of a shopkeeper who takes a fixed rent from a stall plus a fifth of whatever the stall-holder clears after paying that rent. If the rent is halved, the stall-holder clears more, and the shopkeeper's fifth is a fifth of a larger amount. Cutting the management fee enlarges the gain on which the performance fee is charged, so part of the lost management revenue comes back automatically. Here the old fee of 20% on Rs 90 crore earns Rs 18 crore, up from Rs 16 crore, and the true shortfall is Rs 8 crore, not Rs 10 crore. Adding 10 points to get 30% repays the shortfall twice over in part.

    The fee swap only balances at one return: here, 10% grossRevenue at a 10% gross return, Rs crore2016362% + 20%before1018-8281% + 20%fee cut only1026361% + 28.9%re-pricedmanagement feeperformance feeRevenue at other gross returns2040600%5%10%15%20%cross at 10%: 36 eachnew terms: 64.92 and 20: 56below 10%:manager earns lessGross return on the fund
    At a 10% gross return the old terms earn Rs 36 crore, the fee cut alone earns Rs 28 crore, and a performance fee of 28.9% restores Rs 36 crore; at any other return the two sets of terms pay differently, crossing only at 10%.

    How do you set it up in one line?

    Write revenue as management fee plus performance rate times the gain after the management fee, and hold it equal. The new rate is the old revenue less the new management fee, divided by the new fee base: (36 - 10) / 90 = 28.9%. The investor's position is the mirror image: gross gain Rs 100 crore less Rs 36 crore of fees leaves Rs 64 crore, a 6.4% net return under either set of terms, which is a good check that you have kept the total fixed.

    The relationship
    m0A+p0(G−m0A)=m1A+p1(G−m1A)  ⇒  p1=20+0.2×80−1090=2690≈28.9%m_0 A + p_0 (G - m_0 A) = m_1 A + p_1 (G - m_1 A) \;\Rightarrow\; p_1 = \frac{20 + 0.2 \times 80 - 10}{90} = \frac{26}{90} \approx 28.9\%
    Aassets under management, Rs 1,000 crore
    Gthe gross gain, 10% of A, Rs 100 crore
    m0, m1the old and new management fee rates, 2% and 1%
    p0, p1the old and new performance fee rates
    What it says in wordsHold total revenue fixed and solve for the performance rate on the new, larger fee base.

    What does the swap change, even when revenue matches?

    The match holds at one return only. Swapping management fee for performance fee moves risk onto the manager: less is guaranteed, more depends on the year. At a 5% gross return the old terms pay Rs 26 crore and the new ones Rs 21.6 crore; at 20% the old terms pay Rs 56 crore and the new ones Rs 64.9 crore. State the convention too: if the performance fee were charged on the gross gain instead, the old revenue is Rs 40 crore and the new rate comes to exactly 30%. Say which convention you assume before giving a number.

    Where candidates lose it

    The fast wrong answers are 40%, from doubling the performance fee because the management fee halved, and 30%, from adding back ten points. Both forget that the performance fee is charged on a base the management fee itself shrinks.

    The second loss is giving one number without the conditions. A fee trade-off is always at an assumed return and an assumed fee base; say both and offer the sensitivity, because the interviewer's next question is what happens in a bad year.

    What the interviewer asks next

    • At what gross return would the manager prefer the new terms to the old?
    • How does a hurdle rate of 5% change the new performance fee?
    • Why might investors prefer 1 and 29 to 2 and 20 even though revenue matches at 10%?

    Asked at Two Sigma, Equity Capital Markets, New York, 2026 (Wall Street Oasis): the question was regarding how hedge funds operate, the 2/20 rule, and if one part of this equation changed

  3. 062A symmetric random walk starts at 0 and moves up or down by one each step with equal probability. What is the expected number of steps until it first reaches +3 or -3?Markov chains and random walksCoreQuant researchQuant trading

    Try it first

    What is the expected number of steps to hit +3 or -3 from 0?

    Show the worked solution

    9 steps. Let E(k) be the expected steps left from state k. Each step costs one and lands on a neighbour with equal chance, so E(k) = 1 + (E(k - 1) + E(k + 1))/2, with E(3) = E(-3) = 0. The solution is E(k) = (3 - k)(3 + k): 9 from 0, 8 from plus or minus 1, 5 from plus or minus 2. A symmetric walk needs about the square of the distance to travel it.

    Why is the answer not 3?

    Think of someone pacing a narrow corridor, choosing left or right at random with every step. They do reach a wall eventually, but they spend most of their time doubling back. A random walk with no drift covers distance like the square root of time, so covering a distance of 3 takes about 3 squared steps, not 3. The answer 3 would only be right if the walk always moved in one direction. The structure to name in the room is a first-step recursion on the state, which turns the question into seven unknowns with simple links between them.

    Expected steps left from each state: 9, 8, 5, then 0 at the walls-35-28-1908+15+2+3stop: 0stop: 0Each state: one step, then the average ofits two neighbours. From +1: 1 + (9 + 5)/2 = 8Distance to the walls multiplied:from k, (3 - k) x (3 + k) = 9 - k^2Check: S^2 - n has zero drift, so E[T] = E[S_T^2] = 3^2 = 9
    The expected number of steps left is 9 from the centre, 8 one step out, 5 two steps out and 0 at the walls, tracing the parabola 9 - k squared, which is the product of the distances to the two walls.

    How do you solve the recursion quickly?

    Use symmetry first: E(1) = E(-1) and E(2) = E(-2). Then three equations remain. From 2: E(2) = 1 + (E(1) + 0)/2. From 1: E(1) = 1 + (E(0) + E(2))/2. From 0: E(0) = 1 + E(1), because both neighbours are worth E(1). Substituting gives E(1) = 8 and E(0) = 9, and every value matches the product of the distances to the two walls. The second differences of E are all minus 2, which is why the answer is a parabola: each step must remove exactly one unit of expected time.

    The relationship
    E(k)=1+12E(k−1)+12E(k+1),E(±3)=0  ⇒  E(k)=(3−k)(3+k),E(0)=9E(k) = 1 + \tfrac12 E(k-1) + \tfrac12 E(k+1),\quad E(\pm 3) = 0 \;\Rightarrow\; E(k) = (3-k)(3+k),\quad E(0) = 9
    E(k)the expected number of steps left from state k
    1the step just taken
    E(plus or minus 3) = 0the walls, where the walk stops
    What it says in wordsOne step plus the average of the two neighbouring states, solved, gives the product of the distances to the walls.

    How do you check 9 a second way?

    Use a martingaleA process whose expected next value, given everything so far, equals its current value: a fair game.. Squaring the position and subtracting the number of steps gives a fair game, because each step adds exactly 1 to the expected square. At the moment the walk stops its square is exactly 9, so the expected number of steps must also be 9. The same argument handles uneven walls: starting between -a and +b, the expected time is a times b. The cousin result is the hitting probability: from +1, the walk reaches +3 before -3 with probability 2/3, the distance to the far wall over the total width.

    Where candidates lose it

    The trap answers are 3, from treating the walk as if it marched to a wall, and infinity, from a half-remembered fact that a symmetric walk on the whole line takes infinite expected time to reach a given level. With two walls, escape is certain and fast.

    The second loss is setting up seven equations and grinding them. Use symmetry to cut to three, then state the product rule and check it with the squared-position argument.

    What the interviewer asks next

    • Starting at 0, what is the expected time to hit +2 or -4?
    • From +1, what is the probability of reaching +3 before -3?
    • With only one wall at +3 and no lower wall, what is the expected time to reach it?
  4. 066A 2-year bond pays a 6% annual coupon and trades at par. What are its Macaulay duration and modified duration?Pricing, options and index mathsCorePIMCOLos Angeles · 2024

    Try it first

    Which is closest to the Macaulay duration?

    Show the worked solution

    Macaulay duration is 1.943 years and modified duration is 1.833. At par the yield equals the coupon, 6%. The year 1 coupon is worth 6 / 1.06 = 5.660 and the final payment 106 / 1.06^2 = 94.340, adding to 100. Weight each time by its share: 0.0566 x 1 + 0.9434 x 2 = 1.943. Divide by 1.06 for modified duration: a 1 point rise in yield cuts the price by about 1.83%.

    What is Macaulay duration actually measuring?

    Think of a seesaw with weights placed along it at the dates money arrives, each weight equal to what that payment is worth today. Macaulay duration is the point where that seesaw balances: the average time to your money, weighted by present value. A zero-coupon bond has all its weight at maturity, so its duration equals its maturity. Any coupon puts a little weight earlier and pulls the balance point forward. Here the coupon is small and the bond is short, so the pull is small, and that is the whole shape of the answer before any arithmetic.

    Duration is the balance point of the present valuesyear 0year 1year 2PV 5.66cash flow 6PV 94.34cash flow 106balance point 1.943 years0.057 yearsbeforematurityYearCash flowPV at 6%WeightYear x weight165.6605.66%0.057210694.34094.34%1.887Total100.000100%1.943Modified duration = 1.943 / 1.06 = 1.833: price falls about 1.83% for a 1 point rise in yield.
    The year 1 coupon is worth 5.66 today and the year 2 payment 94.34, so the present-value weighted average time is 1.943 years, just 0.057 years before maturity, and dividing by 1.06 gives a modified duration of 1.833.

    How do you get the numbers fast in your head?

    At par, the yield is the coupon, so discount at 6%. The coupon's present value, 6 / 1.06, is about 5.66, and the rest of the price, 94.34, sits at year 2, so duration is 2 minus the coupon's weight: 2 - 0.0566 = 1.943. That shortcut works for any two-period bond: start at the maturity and subtract the early weight times the time it saves. For a par bond there is also a closed form, (1 + y)/y times (1 - 1/(1 + y)^n), which gives the same 1.9434.

    The relationship
    DMac=∑tt PVtP=1×5.660100+2×94.340100=1.943Dmod=DMac1+y=1.9431.06=1.833D_{Mac} = \sum_t t\,\frac{PV_t}{P} = 1\times\frac{5.660}{100} + 2\times\frac{94.340}{100} = 1.943 \qquad D_{mod} = \frac{D_{Mac}}{1+y} = \frac{1.943}{1.06} = 1.833
    PV_tthe present value of the cash flow at time t, discounted at the yield
    Pthe price, 100 at par
    ythe yield per period, 6%
    What it says in wordsDuration is the average payment date weighted by value today; modified duration converts it into a price sensitivity.

    Why are there two durations, and how good is the estimate?

    Macaulay duration is a time; modified duration is a slope. Modified duration is the percentage price change for a one point change in yield, so this bond loses about 1.83% if yields rise from 6% to 7%, about Rs 0.018 per Rs 100 for each basis point. Repricing exactly gives 98.192 at 7%, a fall of 1.808%, and 101.859 at 5%, a rise of 1.859%. The rise is bigger than the fall, which is convexityThe curvature of the price against yield: prices rise more when yields fall than they drop when yields rise by the same amount.; for a two-year bond it is a small correction, for a thirty-year bond it is not.

    Where candidates lose it

    The trap answers are 2 years, from forgetting the coupon, and 1.83 given as the Macaulay figure, from mixing the two definitions. Say which duration you are giving and in what units: years for Macaulay, percent per point of yield for modified.

    The second slip is discounting at the wrong rate. A bond at par yields its coupon, so there is nothing to solve for; say that first and the arithmetic is two divisions.

    What the interviewer asks next

    • What is the duration of a 2-year zero-coupon bond, and of a 2-year bond with a 20% coupon?
    • Estimate the price of this bond if yields rise 50 basis points.
    • Why does duration fall as the coupon rises, holding maturity fixed?

    Asked at PIMCO, Product & Strategy, Los Angeles, 2024 (Wall Street Oasis): Lots of random bond math questions -- duration of this bond with x coupon sold at par

  5. 070I offer you a bet. I draw two cards from a well-shuffled 52-card deck. If they are the same colour you win Rs 100; if they differ you lose Rs 100. Do you take the bet, and what payout on a win would make it fair?Market making, betting and sizingCoreQuant tradingOptions market making

    Try it first

    Should you take the bet?

    Show the worked solution

    Decline it: same colour comes up 25 times in 51, so the bet loses about Rs 1.96 per Rs 100. Whatever the first card is, 25 of the remaining 51 share its colour and 26 do not. The bet is fair only if a win pays Rs 26 for every Rs 25 risked, that is Rs 104 on a win against Rs 100 on a loss.

    Why is same colour less likely than different colour?

    Imagine a classroom with 26 girls and 26 boys. Pick one child, then pick a second: the second is slightly more likely to be of the other sex, because the first pick removed one of their own. Drawing without replacement makes the second card lean away from the first card's colour, since that colour is now short by one. The first card is irrelevant to the answer, whichever colour it is. Only what is left in the deck matters: 25 matching cards and 26 non-matching.

    Once the first card is out, its colour is short by one1stredany colour;say red25 red left: same colour, you win26 black left: you loseP(same colour)25/51 = 49.0%not 1/2: no replacementEV of the Rs 100 betRs -1.96100 x (25 - 26) / 51Fair payout on a winRs 104 per Rs 100odds of 26 to 25
    After any first card, 25 of the 51 cards left share its colour and 26 do not, so same colour has chance 25/51 = 49.0%, the Rs 100 even bet is worth Rs -1.96 on average, and it becomes fair at a payout of Rs 104.

    What is the bet worth, and what makes it fair?

    Expected value is the win times its chance less the loss times its chance: 100 x 25/51 - 100 x 26/51 = -100/51, about Rs -1.96. A bet is fair when the payout ratio equals the odds against winning, here 26 to 25, so the win must pay Rs 104 for each Rs 100 at risk. Quoting it as odds rather than a probability is how a trader would answer: you would take the bet at 26 to 25 or better, and decline anything worse.

    The relationship
    P(same)=2551EV=100⋅2551−100⋅2651=−10051≈−1.96W∗=100⋅2625=104P(\text{same}) = \frac{25}{51} \qquad EV = 100\cdot\frac{25}{51} - 100\cdot\frac{26}{51} = -\frac{100}{51} \approx -1.96 \qquad W^{*} = 100\cdot\frac{26}{25} = 104
    25/51the chance the second card matches the first card's colour
    W*the win payout that makes the expected value zero
    What it says in wordsThe second card matches with chance 25 in 51, so an even-money bet loses a little under 2 rupees per 100.

    Why would an interviewer offer such a small edge?

    To see whether you notice it at all, and then whether you size your response to it. An edge of about 2% per bet is small for one play but decisive over many, so the right answer is to decline at even money and quote the price at which you would play. It also tests whether you separate the first card, which is free, from the conditional chance of the second. With replacement, or with an infinite deck, the bet would be exactly fair; the whole edge comes from the deck being finite, and it shrinks as more decks are shuffled together.

    Where candidates lose it

    The trap answer is that the bet is fair because colours are fifty-fifty. That treats the two cards as independent draws with replacement, which a single deck is not.

    The second loss is getting 25/51 and stopping there. The question asks whether you take the bet and at what price, so finish with the decision and the fair odds of 26 to 25.

    What the interviewer asks next

    • What if the cards come from two decks shuffled together?
    • You win if the two cards are the same suit. What payout makes that fair?
    • I draw three cards and you win if all three are the same colour. What is the chance?
  6. 071We play a matching game: each of us shows heads or tails at the same moment. If both show heads I pay you 3; if both show tails I pay you 1; if we mismatch you pay me 2. What mix should I use to make you indifferent, what mix should you use, and what is the game worth to you per round?Games and strategic reasoningCoreQuant tradingQuant research

    Try it first

    What is the game worth to you per round?

    Show the worked solution

    I show heads 3/8 of the time; so should you; and the game is worth -1/8 to you per round. At my mix q, your heads pays 3q - 2(1 - q) and your tails pays -2q + (1 - q). Setting them equal gives q = 3/8, where both pay -1/8. By the same algebra your 3/8 mix makes my choices equal, so neither of us can improve: the table looks fair and is not.

    Why do I randomise to make you indifferent, not to help myself?

    Think of a penalty taker and a goalkeeper. If the taker shoots left more often than he should, the keeper dives left and gains; any pattern is exploited. In a zero-sum game, the mix that protects you is the one that leaves your opponent with nothing to exploit, which means making every one of their choices pay the same. So I do not pick my heads probability by looking at my own payoffs in isolation; I pick it so that your heads and your tails earn you equal amounts. Then it no longer matters what you do.

    My mix of 3/8 heads makes your two choices pay the same: -1/8Payoff to youI showHTH+3-2T-2+1You showWins 3 + 1 = 4, losses 2 + 2 = 4:looks fair, is not-2-1+1+2+30you show Hyou show Tcross at q = 3/8,both pay -1/800.250.50.751q = my probability of showing heads
    Your payoff from heads rises and your payoff from tails falls as my heads probability grows; they cross at 3/8, where each pays -1/8, so that is my equalising mix and the most you can secure per round.

    How do the two equations give 3/8 and -1/8?

    Let q be my chance of heads. Your heads earns 3q - 2(1 - q) = 5q - 2 and your tails earns -2q + 1(1 - q) = 1 - 3q, and they are equal when 8q = 3, at q = 3/8. Plug back in: 5(3/8) - 2 = -1/8. For your side, let p be your chance of heads; my payoffs are the negatives of yours, and because the table is symmetric the same algebra gives p = 3/8. At those mixes, each cell's frequency is HH 9/64, TT 25/64 and the two mismatches 15/64 each: 3(9) + 1(25) - 2(30) = -8, over 64, is -1/8.

    The relationship
    5q−2=1−3q  ⇒  q∗=38,V=5⋅38−2=−185q - 2 = 1 - 3q \;\Rightarrow\; q^* = \tfrac38,\qquad V = 5\cdot\tfrac38 - 2 = -\tfrac18
    qmy probability of showing heads
    5q - 2your expected payoff from showing heads
    1 - 3qyour expected payoff from showing tails
    Vthe value of the game to you per round
    What it says in wordsMy heads probability is set where your two choices earn the same, and that common amount is what the game is worth to you.

    Why does a table with equal wins and losses favour me?

    Because the cells are not played equally often. Your big win needs both of us on heads, and I can make that cell rare; the mismatches, where I win, happen 30 times in 64 at equilibrium. If I played heads half the time you could earn +1/2 by always showing heads, so a naive 50/50 from me would be a gift. In trading the same idea sets a market maker's quotes: they are placed so that the informed side has no choice that beats the others, not so that the market maker profits on any one trade.

    Where candidates lose it

    The trap is adding up the table, 3 + 1 against 2 + 2, and calling the game fair. Equilibrium frequencies are not a quarter each, so a table's totals tell you nothing about its value.

    The second slip is solving for the mix that maximises your own payoff against a fixed opponent. In a mixed equilibrium each player's mix is pinned down by the other player's payoffs; say that sentence before the algebra.

    What the interviewer asks next

    • If I play heads half the time, what should you do and what do you earn?
    • What payoff for both tails would make the game fair?
    • How does the answer change if the mismatch payment is 3 instead of 2?
  7. 073Use Newton's method to find the square root of 2, starting from 1.5. How many correct digits do you have after each step, and why?Mental maths and number senseCoreQuant researchDesk quant

    Try it first

    Starting from 1.5, about how many correct digits after three Newton steps?

    Show the worked solution

    About 1, 3, 6 and 12 correct digits: the count roughly doubles each step. The update is x(next) = (x + 2/x)/2: 1.5 gives 17/12 = 1.41667, then 577/408 = 1.4142157, then 665857/470832 = 1.41421356237469. Each new error is about the old error squared divided by 2x, so if the error is 10^-k, the next is about 10^-2k. That is quadratic convergence.

    Where does the update rule come from?

    Think of guessing a side of a square room whose area is 2. If your guess is too big, 2 divided by your guess is too small, and the truth sits between the two. Newton's method for x squared minus 2 is exactly that: replace x with the average of x and 2/x. Formally, Newton follows the tangent of f(x) = x^2 - 2 down to zero, x - f(x)/f'(x) = x - (x^2 - 2)/(2x), which simplifies to (x + 2/x)/2. The averaging form is the one to use in your head.

    Each Newton step roughly doubles the correct digitsStepFractionDecimal (correct digits in green)Correct digits03/21.51117/121.416666666666632577/4081.414215686274563665857/4708321.4142135623746124(digits run past the table)1.414213562373024Rule: x(next) = (x + 2/x) / 2. The new error is about the old error squared over 2x.
    Starting from 1.5, Newton's iterates for the square root of 2 have 1, 3, 6 and then 12 correct digits, doubling at each step because each new error is roughly the square of the old one.

    How do you get the iterates without a calculator?

    Keep fractions. From 3/2, the next value is (3/2 + 4/3)/2 = 17/12, then (17/12 + 24/17)/2 = 577/408, and the pattern continues: if x = p/q, the next is (p^2 + 2q^2)/(2pq). 17/12 is 1.41667, already right to 1.41. 577/408 is 1.4142157 against 1.4142136, right to 1.41421. The third step's fraction, 665857/470832, is too big for mental division, but you can predict its accuracy without doing it, which is the point of the question.

    The relationship
    xn+1=12(xn+2xn)xn+1−2=(xn−2)22xnx_{n+1} = \tfrac12\Big(x_n + \frac{2}{x_n}\Big) \qquad x_{n+1} - \sqrt2 = \frac{(x_n - \sqrt2)^2}{2x_n}
    x_nthe current estimate of the square root of 2
    x_n - sqrt 2the error of the current estimate
    2 x_nabout 2.8 near the root, so the new error is about a third of the old error squared
    What it says in wordsEach new error is the old error squared, divided by about 2.8, so the correct digits roughly double.

    Why is it the digits that double, and when does that fail?

    Subtract the root from the update and the algebra collapses to (x - root 2)^2 / 2x. Squaring an error of 10^-3 gives 10^-6, so each step doubles the number of correct digits once you are close. The errors here run about 0.09, 0.0025, 2 x 10^-6 and 1.6 x 10^-12. The doubling needs a good start and a simple root: far from the root, or where the slope is zero, Newton can creep or jump away. Bisection, by contrast, gains one binary digit per step whatever happens, which is why desk code often brackets with bisection and finishes with Newton when solving for implied volatility.

    Where candidates lose it

    The trap is guessing linear progress, one or two digits a step, because that is how most iterative methods feel. Newton is special near a simple root, and the interviewer wants the word quadratic and the reason for it.

    The second loss is getting lost in decimals. Work in fractions, 3/2, 17/12, 577/408, and state the error-squared rule instead of computing the third step.

    What the interviewer asks next

    • Write Newton's update for the cube root of 10, and start it from 2.
    • Why does Newton converge only linearly at a double root?
    • How would you use Newton's method to find an implied volatility, and what can go wrong?
  8. 074A point is dropped uniformly at random in a unit square. What is the expected distance from the point to the nearest edge of the square?Continuous and geometric probabilityCoreHRHudson River TradingNew York · 2024

    Try it first

    What is the expected distance to the nearest edge?

    Show the worked solution

    1/6. Let D be the distance to the nearest edge. D exceeds d exactly when the point lies in the inner square of side 1 - 2d, so P(D > d) = (1 - 2d)^2 for d up to 1/2. The expected value of a non-negative variable is the integral of its tail, and the integral of (1 - 2d)^2 from 0 to 1/2 is 1/6.

    Why work with the chance of being far rather than the distance itself?

    Think of a sandpit where a child stands at a random spot and the question is how far they are from the nearest edge. Writing the distance as min(x, 1 - x, y, 1 - y) and integrating a minimum of four things means splitting the square into four triangles. Asking instead when the point is farther than d from every edge has a one-picture answer: the point must lie in a smaller square, shrunk by d on every side. That square has side 1 - 2d, so its area, (1 - 2d)^2, is the tail probability. One formula replaces four cases.

    Farther than d from every edge means inside a square of side 1 - 2d0.640.360.160.04nearest edgenumbers: P(distance > d) for d = 0.1 to 0.400.10.20.30.40.50.51P(D > d) = (1 - 2d)^2area = 1/6d, distance to the nearest edgesimulated: 0.1669exact: 1/6 = 0.1667
    A point is more than d from every edge only inside the inner square of side 1 - 2d, so the chance of being farther than 0.1, 0.2, 0.3 and 0.4 is 0.64, 0.36, 0.16 and 0.04, and the area under that tail curve is the expected distance, 1/6.

    How does the tail give the expectation?

    For any non-negative random variable, the expected value equals the integral of the chance that it exceeds each level, E[D] = integral of P(D > d). Here that is the integral of (1 - 2d)^2 from 0 to 1/2. Substitute u = 1 - 2d and it becomes half the integral of u^2 from 0 to 1, which is 1/6. A simulation with 200,000 random points gives 0.1669, against the exact 0.1667.

    The relationship
    E[D]=∫01/2P(D>d) dd=∫01/2(1−2d)2 dd=[−(1−2d)36]01/2=16E[D] = \int_0^{1/2} P(D>d)\,dd = \int_0^{1/2} (1-2d)^2\,dd = \Big[-\tfrac{(1-2d)^3}{6}\Big]_0^{1/2} = \tfrac16
    Dthe distance from the random point to the nearest edge
    P(D > d)the area of the inner square of side 1 - 2d
    What it says in wordsAdd up the chance of being farther than each distance, and the total is the expected distance.

    How do you sanity-check 1/6 against simpler cases?

    Build up the number of edges. The distance to one fixed edge averages 1/2, to the nearer of two opposite edges averages 1/4, and to the nearest of all four it falls to 1/6, so each added constraint pulls the minimum closer. The density of D is the slope of the tail, 4(1 - 2d), largest at the edge, which says most random points are near the boundary. That is the same reason most of the volume of a high-dimensional cube sits near its surface, a fact that matters when sampling scenarios in many risk factors at once.

    Where candidates lose it

    The trap answers are 1/2 and 1/4, from handling one edge or one axis and forgetting that the nearest of four edges is a minimum. A candidate who integrates min(x, 1 - x, y, 1 - y) directly often splits the square wrongly and lands on a different number.

    Draw the inner square and say tail integral; the whole calculation is then one line.

    What the interviewer asks next

    • What is the expected distance to the nearest edge in a unit cube?
    • What is the expected distance to the nearest corner of the square?
    • What is the density of the distance to the nearest edge, and where is it highest?

    Asked at Hudson River Trading, Campus Algo Dev Interview, New York, 2024 (Wall Street Oasis): I was asked a expected value question involving the expected value among distance to an edge, with a randomly placed object.

  9. 078Let A be the 2 by 2 matrix with 2 on the diagonal and 1 off the diagonal. Compute A to the power 10 without multiplying it out ten times.Correlation, regression and linear algebraCoreQuant researchQuant trading

    Try it first

    What is the top-left entry of A^10?

    Show the worked solution

    A^10 has 29,525 on the diagonal and 29,524 off it. A has eigenvalue 3 along (1, 1) and eigenvalue 1 along (1, -1). Writing A = Q D Q^T with D = diag(3, 1), the tenth power is Q D^10 Q^T, and only the numbers 3 and 1 get raised to the tenth. The entries are (3^10 + 1)/2 and (3^10 - 1)/2.

    Why look for eigenvectors at all?

    Think of a photocopier set to 300% on one axis and 100% on the other. Copy a copy ten times and you do not need to simulate every pass: that axis is 3 to the tenth times longer and the other is unchanged. An eigenvector is a direction the matrix only stretches, so applying the matrix ten times along it is just multiplying by the eigenvalue ten times. Symmetric matrices always have a full set of such directions at right angles, which is what makes this matrix easy.

    Find them by inspection. Adding the two rows of A gives 3 in each, so A(1, 1) = (3, 3): eigenvalue 3. Subtracting gives 1, so A(1, -1) = (1, -1): eigenvalue 1. The trace is 4 and the determinant is 3, and 3 + 1 = 4 and 3 x 1 = 3, which confirms both in one line.

    Two directions the matrix only stretches: powers become powers of numbersxy(1, 1)A(1, 1) = (3, 3)(1, -1) = A(1, -1)eigenvalue 3 along (1, 1); eigenvalue 1 along (1, -1)A = Q D Q^TQ holds the unit eigenvectors, D = diag(3, 1)A^10 = Q D^10 Q^Tthe Q^T Q pairs in the middle cancelD^10 = diag(59,049, 1)only two numbers get raised to the 10thA^10: diagonal (3^10 + 1)/2, off it (3^10 - 1)/229,52529,52429,52429,525
    The matrix stretches the direction (1, 1) by a factor of 3 and leaves (1, -1) unchanged, so A to the tenth stretches them by 59,049 and 1, and converting back to ordinary coordinates gives 29,525 on the diagonal and 29,524 off it.
    The relationship
    A=Q(3001)QT,  Q=12(111−1)⇒A10=12(310+1310−1310−1310+1)A = Q\begin{pmatrix}3&0\\0&1\end{pmatrix}Q^{T},\; Q=\tfrac{1}{\sqrt2}\begin{pmatrix}1&1\\1&-1\end{pmatrix} \Rightarrow A^{10} = \tfrac12\begin{pmatrix}3^{10}+1 & 3^{10}-1\\ 3^{10}-1 & 3^{10}+1\end{pmatrix}
    Qthe matrix whose columns are the unit eigenvectors
    Dthe diagonal matrix of eigenvalues, 3 and 1
    Q^Tthe transpose of Q, which is also its inverse
    What it says in wordsRotate into the eigenvector directions, raise each eigenvalue to the tenth, and rotate back.

    Is there an even faster route for this particular matrix?

    Yes. Write A = I + J, where J is the all-ones matrix. J squared is 2J, so every power of J is a multiple of J, and (I + J)^n collapses to I + ((3^n - 1)/2) J. For n = 10 that is I + 29,524 J, which gives 29,525 on the diagonal and 29,524 off it: the same answer, and a good cross-check to say aloud. A brute-force multiplication in code agrees exactly.

    Say why this matters on a desk. A covariance matrix with equal variances and one common correlation has exactly this shape, and its eigenvectors are the market direction and the spread directions. Powers of transition matrices in Markov chains are computed the same way, and the eigenvalue closest to 1 tells you how fast the chain forgets where it started.

    Where candidates lose it

    The fast wrong answer raises each entry to the tenth, giving 1,024 on the diagonal and 1 off it. Matrix multiplication mixes rows and columns, so entries do not power separately; A squared already has 5 on the diagonal, not 4.

    The second loss is diagonalising correctly and then fumbling the conversion back. The Q matrix carries a 1/sqrt(2) on each side, which becomes the factor of one half in the final answer. Check with the trace: the diagonal entries of A^10 must sum to 3^10 + 1.

    What the interviewer asks next

    • What is A^n as n grows large, after dividing by 3^n?
    • Compute the square root of A, a symmetric matrix B with B squared equal to A.
    • Generalise: an n by n matrix with a on the diagonal and b everywhere else. What are its eigenvalues?
  10. 080A path moves one unit right or one unit up at a time, from (0,0) to (6,4). Every shortest path is equally likely. The point (3,2) is blocked. How many valid paths remain, and what is the probability that a random shortest path avoids the blocked point?Counting and combinatoricsCoreSusquehanna International GroupLondon · 2026

    Try it first

    How many of the shortest paths pass through (3,2)?

    Show the worked solution

    110 paths avoid the block, so the probability is 110/210 = 11/21, about 52.4%. All shortest paths use 6 rights and 4 ups in some order: C(10,4) = 210. Paths through (3,2) combine 10 ways in with 10 ways out, 100 in all. Subtract, and 110 survive.

    How do you count all the shortest paths?

    A shortest path is a string of 10 moves with exactly 6 rights and 4 ups, like a ten-letter word made of R and U. Choosing which 4 of the 10 slots are ups fixes the path completely, so there are C(10,4) = 210 shortest paths. That is the whole sample space, and every one of those strings is equally likely by the question's rule.

    Why multiply for the paths through the blocked point?

    Think of a trip from home to the office with a stop at a coffee shop. If there are 10 routes to the shop and 10 routes from the shop to the office, there are 10 x 10 = 100 full trips, because every first half pairs with every second half. Paths through (3,2) split the same way: C(5,2) = 10 in and C(5,2) = 10 out, so 100 of the 210 pass through the block. Subtract and 110 remain.

    Write the count at every point: left plus below, with the block set to zero11111123451361015140blocked1025155154016112666171844110start (0,0)end (6,4)All shortest pathsC(10,4) = 210Through (3,2)C(5,2) x C(5,2) = 100Avoiding the block210 - 100 = 110Probability of avoiding110/210 = 11/21 = 52.4%
    Adding the count from the left and the count from below at every point, with the blocked point set to zero, gives 110 paths at (6,4), which matches 210 total paths minus the 100 that pass through (3,2).
    The relationship
    (104)−(52)(52)=210−100=110,P=110210=1121\binom{10}{4} - \binom{5}{2}\binom{5}{2} = 210 - 100 = 110, \qquad P = \frac{110}{210} = \frac{11}{21}
    C(10,4)ways to place 4 ups among 10 moves
    C(5,2)ways to place 2 ups among the 5 moves on each side of the block
    What it says in wordsCount everything, subtract the paths forced through the block, and divide by everything.

    The grid method in the figure is the check, and it is also what you would code. Each point's count is the count from the left plus the count from below, because the last step into any point came from one of those two neighbours. Setting the block to zero removes every path through it automatically, and the same method handles several blocks, where the subtraction formula needs inclusion and exclusion.

    Does the answer change if the walker flips a coin at each step?

    Yes, and interviewers often ask this next. If the walker flips a fair coin for right or up at each step, any visit to (3,2) happens on move five, and a walker still able to get there has not yet touched the top or right edge, so all five of those moves were free coin flips. The chance of standing on (3,2) after five flips is C(5,2)/2^5 = 10/32 = 5/16, so the coin-flip walker avoids the block with probability 11/16, about 68.8%, well above 11/21. Choosing uniformly among complete paths is not the same as flipping coins: conditioning on the end point (6,4) pulls paths towards the diagonal that leads there, and (3,2) sits on it. Say which model the question means before you answer.

    Where candidates lose it

    The usual slip is adding the ways in and out, 10 + 10 = 20, instead of multiplying. Paths through a point are pairs of half-paths, and pairs multiply.

    The second loss is quietly switching models, treating each step as a coin flip while using the uniform-path count, or the reverse. State that the question picks among all 210 shortest paths with equal chance, and the answer 11/21 follows.

    What the interviewer asks next

    • What if both (3,2) and (2,3) are blocked?
    • How many shortest paths pass through (3,2) or (4,3), counting each path once?
    • How many paths from (0,0) to (6,4) never go above the line y = x?

    Asked at Susquehanna International Group, Quantitative Research, London, 2026 (Wall Street Oasis): Probability about crossing from (0,0) to (6,4). Some point in the middle cannot pass through

← PreviousPage 4 of 5
  1. 1
  2. …
  3. 3
  4. 4
  5. 5
Next →
Fin Maverick

Finance education that ends in a job, not a certificate that gathers dust. Built for young India.

LEARN
CalculatorsFrameworksComparisonsInterview RoadmapsShowdown
RESOURCES
All CoursesFree CoursesBootcampsInternships
COMPANY
AboutJob openingPartnership
LEGAL
Privacy PolicyTerms & ConditionsContent LicenseReturn & Refund Policy
© 2026 FIN MAVERICK / BUILT FOR INDIA.DO FINANCE, DO NOT JUST READ ABOUT IT.