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
CalculatorComparison
Frameworks
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

Portfolio Management puzzles, solved step by step

Puzzles
100
Traced to a firm
31
Topics
13
Hard
30
Topic
All topicsStatistics and forecasting9Portfolio risk maths10Logic brainteasers7Behavioural and decision traps7Probability and expected value8Bond maths10Valuation riddles8Performance measurement8Private and real asset maths8Funds, ETFs and implementation7Compounding and fee drag7Market sizing and estimation6Currency and global returns5
Level
AnyWarm upCoreHard
Source
AnyReported at a firmStandard
Showing 1–7 of 7 · filtered from 100Clear filters
  1. 003A car leaves town A for town B, 100 miles away, at 50 miles an hour. At the same moment a bird leaves B at 100 miles an hour, flies to meet the car, turns back to B, then turns again toward the car, and keeps shuttling until the car reaches B. How far does the bird fly?Logic brainteasersWarm upBLBlackRockNew York · 2025

    Try it first

    Answer inside ten seconds.

    Show the worked solution

    200 miles. The car needs 100 miles at 50 miles an hour, which is two hours. The bird flies without stopping for those two hours at 100 miles an hour, so it covers 200 miles, however many times it turns. Summing the legs gives the same answer: 66.7 there and back, then 22.2 there and back, each pair a third of the one before, which adds to 200.

    Why is summing the legs the slow way?

    Picture a dog on a walk that runs ahead to the gate and back to you, over and over, until you reach the gate. Nobody counts the dog's sprints; you just ask how long the walk took and how fast the dog runs. When something moves at a constant speed for a known time, distance is speed times time, whatever path it traces. The bird's zig-zag looks like the hard part of the question. It is a distraction. The only thing that matters is when the flying stops, and that is when the car arrives.

    Plot position against time: the bird simply flies for as long as the car drivesAB5000.511.52 hoursTimefirst meeting: 40 min, 33.3 miles from Acar, 50 mphbird, 100 mphAsk how long, not how farCar: 100 miles / 50 mph = 2 hBird: 2 h x 100 mph= 200 milesCheck: sum the legs66.7 + 66.7 = 133.3then 22.2 + 22.2, 7.4 + 7.4 ...each pair a third of the last: 200
    The car takes two hours to cover 100 miles at 50 miles an hour, and the bird zig-zags between B and the car for exactly those two hours, so at 100 miles an hour it flies 200 miles; the shrinking legs of 66.7, 66.7, 22.2, 22.2 and so on add to the same total.

    How do you check 200 the long way, in case the interviewer asks?

    The bird and the car close at 150 miles an hour, so they first meet after 100 / 150 of an hour, 40 minutes, when the car is 33.3 miles from A and the bird has flown 66.7 miles. The bird flies 66.7 miles back to B. By then the car is 66.7 miles along, 33.3 miles from B, and the same geometry repeats on a gap a third as large. Each round trip is a third of the one before, so the legs form a geometric series: 133.3 times one over one minus a third, which is 200.

    The relationship
    d=vbird×Dvcar=100×10050=200check: 133.3×11−13=200d=v_{bird}\times\frac{D}{v_{car}}=100\times\frac{100}{50}=200 \qquad \text{check: } 133.3\times\frac{1}{1-\tfrac{1}{3}}=200
    Dthe distance from A to B, 100 miles
    v_{car}, v_{bird}the speeds, 50 and 100 miles an hour
    What it says in wordsThe bird's distance is its speed times the car's travel time; the geometric sum of its legs confirms it.

    Why ask this on a quantitative research desk? Because the same move, stepping back from the path to the total, is how you price anything path-dependent in your head: ask what is conserved or fixed before tracing every step.

    Where candidates lose it

    Candidates start computing the first meeting point, then the second, and lose the room in arithmetic. The interviewer is watching for the moment you ask how long the bird flies; some interviewers stop you once you begin summing legs.

    The second trap is saying infinite because the bird turns infinitely often. A sum of infinitely many shrinking terms can be finite, and here it is.

    What the interviewer asks next

    • What if the bird flew at 150 miles an hour?
    • If both towns sent a car toward each other at 50 miles an hour, how far does the bird fly?
    • How many times does the bird touch the car?

    Asked at BlackRock, Quantitative Research, New York, 2025 (Wall Street Oasis): A car starts at point A going 50 miles an hour towards point B, and a bird starts at point B going towards point A at 100 miles per hour

  2. 016A stock's prices over six days are 7, 1, 5, 3, 6 and 4. What is the most you can make with one buy followed by one later sell? And what is the most with any number of buy and sell trades, if you can hold at most one share and cannot short?Logic brainteasersCoreMan GroupLondon · 2019

    Try it first

    With unlimited trades, what is the maximum profit?

    Show the worked solution

    5 with one trade and 7 with any number. With one trade, buy at the lowest price that comes before a higher one: buy at 1 on day 2 and sell at 6 on day 5, for 5. With unlimited trades, collect every day-to-day rise and sit out every fall: 1 to 5 earns 4, 3 to 6 earns 3, a total of 7. The general answer is the sum of the positive daily changes.

    How do you find the best single trade without checking every pair?

    Walk through the prices once, like a shopper who notes the cheapest price seen so far and asks each day how much they would make selling today. The best single trade is the largest gap between today's price and the lowest price seen before today, found in one pass. At day 2 the low is 1. Day 3 offers 5 minus 1, which is 4; day 5 offers 6 minus 1, which is 5; no later day beats it. The trap is subtracting the lowest price from the highest overall: the high of 7 comes before the low of 1, so it cannot be sold after buying.

    Same prices, two rules: one trade catches the widest gap, many trades catch every riseOne trade: buy 1, sell 6 = 5048day 1day 2day 3day 4day 5day 67buy 153sell 64Any number: 4 + 3 = 7048day 1day 2day 3day 4day 5day 6715364+4+3Falls (grey) are skipped: with no shorting, a fall is only avoided, never earned.
    On prices of 7, 1, 5, 3, 6 and 4, one trade catches the widest later gap, buying at 1 and selling at 6 for 5, while unlimited trades catch each rise, 4 and then 3, for 7.

    Why is the unlimited answer just the sum of the rises?

    Any profitable trade from a low to a later high can be split into daily steps, and it gains only on the up days inside it while paying for every down day it sits through. With no limit on trades and no shorting, the best strategy holds the stock on every day it rises and nothing on every day it falls, so profit equals the sum of positive daily changes. Here that is 4 plus 3, which is 7. One pass through the prices gives the answer, which is the point of asking a coding-flavoured candidate.

    The relationship
    one trade=max⁡j>i(pj−pi)=6−1=5many=∑tmax⁡(pt+1−pt,0)=4+3=7\text{one trade}=\max_{j>i}(p_j-p_i)=6-1=5 \qquad \text{many}=\sum_t \max(p_{t+1}-p_t,0)=4+3=7
    p_tthe price on day t
    \max(p_{t+1}-p_t, 0)a day's rise, or zero on a falling day
    What it says in wordsOne trade is the widest later gap; unlimited trades collect every daily rise.

    Say the limitation as a portfolio manager would: this is perfect hindsight with no costs. Add a transaction cost per trade and the two answers move toward each other, because catching a small rise is no longer worth paying for.

    Where candidates lose it

    The common mistake is answering 6, the highest price minus the lowest, without checking that the high comes after the low. The interviewer is testing whether you respect the order of time.

    For the second part, candidates sometimes add the falls as well, answering 9 or more, as if they could short. Reread the constraint: no shorting means falls are only avoided, never earned.

    What the interviewer asks next

    • What if you are allowed at most two trades?
    • Each trade now costs 1. What is the best total?
    • Write the one-pass algorithm for the single trade and say its running time.

    Asked at Man Group, Alternative Investments, London, 2019 (Wall Street Oasis): Given a series of prices, find the one buy/sell trade pair which gives the maximum profit

  3. 030You have two ropes and a lighter. Each rope takes exactly 60 minutes to burn from one end to the other, but it burns unevenly, so half the length does not mean half the time. How do you measure exactly 45 minutes?Logic brainteasersWarm upAsset managementReal assets

    Try it first

    What does lighting a rope at both ends give you, if it burns unevenly?

    Show the worked solution

    Light rope 1 at both ends and rope 2 at one end, together. When rope 1 burns out, light the other end of rope 2; when rope 2 burns out, 45 minutes have passed. Rope 1 lasts 30 minutes because two flames share its 60 minutes of burning. At that moment rope 2 has 30 minutes left, and lighting its other end halves that to 15. 30 plus 15 is 45.

    Why does uneven burning not spoil the halving?

    Two people eating one plate of food from opposite sides finish it in half the time one person would take, whether the food is piled high on one side or spread evenly. They simply meet off-centre. A rope holds 60 minutes of burning in total, and two flames consume it twice as fast, so it is gone in 30 minutes wherever the flames happen to meet. The unevenness decides the place, never the time. That is the only fact the puzzle needs.

    Light both ends and time halves, however unevenly the rope burns0 min15 min30 min45 minRope 1both endsflames meet here, not in the middlegone at 30Rope 2one end,then bothone end: 30 min of burning usedboth ends30 left, halvedlight rope 2's other endRope 2 gone at45 minutesStopwatch
    Rope 1, lit at both ends, is gone after 30 minutes even though its flames meet away from the middle. Rope 2, lit at one end, has 30 minutes of burning left at that moment, and lighting its other end halves that to 15 minutes, ending at 45.

    How do you know rope 2 has exactly 30 minutes left at the half-hour?

    Rope 2 has been burning from one end for 30 minutes, so it has used 30 of its 60 minutes of material, whatever length that turned out to be. You never measure length; you only ever track time used and time left. Lighting the far end of what remains halves the 30 minutes left, and the rope finishes 15 minutes later. Say the timeline in that order and the answer is audible.

    Interviewers often extend it: with the same two ropes you can also time 15, 30, 60 and 90 minutes, each by deciding which ends are burning at which moment. Answering one extension shows you own the principle rather than a memorised trick.

    Why would a real asset desk ask this? It is a clean test of whether you separate the thing you can measure from the thing that is noisy. A rent roll is lumpy month to month; the annual total is what the valuation rests on. Saying that link in one sentence costs nothing.

    Where candidates lose it

    Candidates try to cut or fold the ropes, or to reason about lengths, which the uneven burning makes useless. The whole question is set up to see whether you let go of length and think only in minutes of burning.

    The second slip is lighting rope 2's second end at the start. Rope 2 must be lit at one end at minute 0 so that exactly 30 minutes of it are used up when rope 1 finishes.

    What the interviewer asks next

    • Using the same two ropes, how do you measure 15 minutes?
    • With three ropes, what is the longest time you can measure beyond 60 minutes?
    • Can you measure 20 minutes with two ropes? Why or why not?
  4. 043You have n cars, each fuelled to drive exactly 1,000 miles, and fuel can be moved from one car to another along the way. Tanks cannot be overfilled. How far can one car get, and how does that distance grow as n becomes very large?Logic brainteasersHardMillennium ManagementLondon · 2024

    Try it first

    With four cars, how far can one car get?

    Show the worked solution

    1,000 x (1 + 1/2 + 1/3 + ... + 1/n) miles, which grows without limit but only like the logarithm of n. Drive all n cars 1,000/n miles; together they have burned one full tank, so one car can refill the rest and be abandoned. Repeat with n minus 1 cars for 1,000/(n minus 1) miles, and so on. Four cars reach 2,083 miles, 100 cars about 5,187, and the distance tracks 1,000 x (ln n + 0.577).

    When should a car drop out of the convoy?

    Think of friends sharing water on a long walk, where every bottle is full at the start and nobody can carry more than one. The moment the group has drunk exactly one bottle's worth, one friend can pour the rest of theirs into everyone else's bottles and head home. A car should drop out the instant the convoy has burned exactly one tank in total, because that is the first moment its remaining fuel exactly fills the others. With n cars that happens after 1,000/n miles, since n cars burn fuel n times as fast as one.

    Each extra car adds a shorter leg: 1000/n, then 1000/(n-1), and so on1000/4 = 2501000/3 = 3331000/2 = 5001000/1 = 1,000Car 4tops up, left emptyCar 3tops up, left emptyCar 2tops up, left emptyCar 12,083 miles1,0003,0005,0001255075100Number of carsMiles reachable10 cars: 2,929100 cars: 5,187
    Four cars travel 250, 333, 500 and 1,000 miles in successive legs as one car at a time tops up the rest and drops out, reaching 2,083 miles. The distance with n cars keeps growing but ever more slowly, from 2,929 miles with 10 cars to 5,187 with 100.

    Why does the distance grow only like a logarithm?

    The total is 1,000 times the harmonic sum 1 + 1/2 + ... + 1/n. Each extra car adds the shortest leg of the journey, 1,000/n miles, so the gains shrink as the convoy grows, and the harmonic sum rises like ln n plus about 0.577. It never stops growing, so any distance is reachable in principle, but slowly: 10 cars reach about 2,929 miles, and getting past 5,000 miles takes 83 cars. Doubling the fleet adds only about 1,000 x ln 2, roughly 693 miles.

    The relationship
    D(n)=1000∑k=1n1k≈1000 (ln⁡n+0.577)D(n) = 1000\sum_{k=1}^{n}\frac{1}{k} \approx 1000\,(\ln n + 0.577)
    nthe number of cars at the start
    1000/kthe leg driven while k cars remain
    0.577the Euler-Mascheroni constant
    What it says in wordsEach leg is one tank shared among the cars still running, and the legs add up to a harmonic series.

    Why a hedge fund asks it: the structure is the same as scaling a strategy. Each extra unit of capital or effort buys a smaller increment, and a candidate who sees the diminishing returns and names the rate of decay is showing the instinct the desk wants. Also be ready to argue optimality in one sentence: any plan that drops a car earlier wastes fuel it cannot hand over, and dropping later wastes the fuel spent carrying a car that is no longer needed.

    Where candidates lose it

    The quick wrong answers are n times 1,000, as if all the fuel could be pooled into one car, or a flat 1,000 because tanks cannot be overfilled. Both skip the key idea that the convoy itself consumes fuel while carrying the reserve.

    Work n equals 2 out loud first: drive 500, pour the rest of car 2 into car 1, and drive 1,000 more, for 1,500. Then generalise. The interviewer wants the harmonic series and the words grows like log n.

    What the interviewer asks next

    • Roughly how many cars do you need to travel 10,000 miles?
    • What changes if cars can come back to a depot and cache fuel along the road?
    • Where do you see diminishing returns of this shape in portfolio construction?

    Asked at Millennium Management, Investments, London, 2024 (Wall Street Oasis): Suppose you have n cars, each fueled so that they can drive for 1000 miles.

  5. 053You have nine bags of coins that look identical. Eight weigh the same and one is lighter. Using a balance scale with no weights, what is the fewest number of weighings that always finds the light bag?Logic brainteasersWarm upAsset management

    Try it first

    What is the fewest weighings that is guaranteed to work?

    Show the worked solution

    Two weighings. Put three bags on each side and leave three aside. Whichever side rises holds the light bag; if the pans balance, it is among the three on the table. Take that group of three and weigh one bag against another: the one that rises is light, and if they balance, it is the third. A balance gives three outcomes per weighing, and three times three covers nine bags.

    Why is halving the pile the wrong instinct?

    Halving is what you would do with a question that answers yes or no, like guessing a number between 1 and 100. A balance tells you more than that. A balance scale has three outcomes, left pan rises, right pan rises, or level, so each weighing should split the suspects into three equal groups, not two. The group left on the table is not wasted: a level balance is information too. With four and four plus one aside you would learn little from a level result except that the odd bag is the spare one, and an unlucky run needs three weighings.

    A balance has three outcomes, so split the bags into three every timeWeighing 1: bags 1-3 vs 4-6bags 7-9 stay on the tableLeft side riseslight bag in 1, 2 or 3Balancedlight bag in 7, 8 or 9Right side riseslight bag in 4, 5 or 6Weighing 2: bag 7 vs bag 87 risesbag 7balancedbag 98 risesbag 8Same second stepunder the othertwo branches1 weighing:3 outcomes2 weighings:3 x 3 = 9
    Weighing three bags against three splits nine suspects into three groups of three, whichever way the pans move, and weighing one bag against one then names the light bag, so two weighings give nine end points, one for each bag.

    How do you prove two is the minimum?

    Count outcomes. One weighing produces at most three different results, and three results cannot point to nine different bags. With k weighings you can separate at most 3 to the power k bags, so nine bags need at least two weighings, and the method above shows two is enough. The same count answers the natural follow-up: three weighings handle up to 27 bags, four handle 81.

    The relationship
    3k≥n⇒32=9≥93^k \ge n \quad\Rightarrow\quad 3^2 = 9 \ge 9
    kthe number of weighings
    nthe number of bags, one of which is light
    3outcomes of one weighing: left light, right light, balanced
    What it says in wordsEach weighing multiplies the number of distinguishable outcomes by three, so you need enough weighings for the outcomes to cover every bag.

    Why would an asset manager ask this? It is a test of whether you use all the information a measurement gives you. A risk report, a performance attribution or a data screen can be read in more ways than pass and fail, and the candidate who spots the third outcome here is the one who reads the level result as a finding.

    Where candidates lose it

    The trap is answering three or four because you split into halves. It is the natural instinct, and the interviewer is watching whether you notice that a balance can come out level, which is a result in its own right.

    The second loss is giving two without the counting proof. Say the 3 to the power k rule in one sentence: it shows you know the answer is a minimum, not just a method that happened to work.

    What the interviewer asks next

    • How many weighings do you need for 27 bags? For 100?
    • Now you do not know whether the odd bag is heavier or lighter, and there are twelve. How many weighings?
    • You may take any number of coins from each bag and weigh once on a scale that shows grams. How do you find the light bag?
  6. 066Five pirates, ranked A to E by seniority, must split 100 gold coins. The most senior pirate proposes a split and everyone votes. If at least half the votes, including his own, are in favour, the split stands; otherwise he is thrown overboard and the next pirate proposes. Pirates are perfectly rational, want to survive first and maximise coins second, and vote no when indifferent. What does A propose?Logic brainteasersHardHedge fundsQuantitative asset management

    Try it first

    How many coins does A keep?

    Show the worked solution

    A proposes 98 for himself, 0 for B, 1 for C, 0 for D and 1 for E. Solve from the end. With two pirates, D keeps all 100 because his own vote is half. With three, C buys E for 1 coin. With four, B buys D for 1. With five, A needs two votes and buys the two pirates who get nothing under B's plan, C and E, for one coin each, keeping 98.

    Where do you start?

    At the end, where there is no choice left. Think of planning a train journey with connections: you start from the time you must arrive and work back to when you must leave. A sequential game is solved backwards, because each pirate's vote depends only on what he would get if the current proposal failed. With two pirates left, D proposes 100 for himself; his own vote is half, which is enough. So E gets nothing if it ever comes to that, and E knows it.

    Solve it backwards: each proposer buys the pirates who would get nothing nextPirate APirate BPirate CPirate DPirate Esenior to junior5 pirates leftneeds 3 votes9801014 pirates leftneeds 2 votesgone990103 pirates leftneeds 2 votesgonegone99012 pirates leftneeds 1 votesgonegonegone1000readupwarda vote bought with 1 coin: this pirate gets 0 in the row belowthe proposer, who votes for himself
    Read the grid from the bottom up: each proposer keeps everything except one coin for each vote he needs, and he buys the pirates who would get nothing in the row below, so A ends with 98 and pays C and E one coin each.

    How does each step follow from the one below?

    With three pirates, C needs two votes, his own and one more. E gets 0 if C dies, so one coin buys E: C proposes [99, 0, 1]. With four, B needs two votes; under C's plan D gets 0, so B buys D for one coin: [99, 0, 1, 0]. A vote is worth exactly one coin more than that pirate's fallback, so a proposer always buys the cheapest voters, the ones left with nothing in the next round. With five, A needs three votes. Under B's plan C and E get nothing, so one coin each buys them, and A proposes [98, 0, 1, 0, 1].

    State the assumptions, because the answer rests on them. If an indifferent pirate voted yes, A could buy votes for zero coins. If the rule needed a strict majority, the counts change. Interviewers often change one rule as a follow-up to see whether you rebuild the chain or reach for a memorised answer. The buy-side lesson is about incentives: what someone will accept depends on their alternative, not on fairness.

    Where candidates lose it

    The trap is reasoning forwards from fairness, proposing an even split or generous bribes to the next in line. Without the backward chain you cannot know who is cheap to buy, and B, the obvious ally, is in fact the most expensive vote because he inherits the power if A dies.

    The second loss is skipping the stated assumptions. Say that indifferent pirates vote no and that exactly half passes; they decide whether the bribe is one coin or zero.

    What the interviewer asks next

    • What if a proposal needs a strict majority rather than half?
    • With the same rules, what happens with 200 pirates and 100 coins?
    • Where do you see the same logic, what someone accepts depends on their outside option, in a debt restructuring?
  7. 088An n by n by n cube, like a Rubik's cube, is built from small cubes. As a formula in n, how many of the small cubes show at least one face on the outside?Logic brainteasersCoreT. Rowe PriceBaltimore · 2020

    Try it first

    For n = 3, a standard Rubik's cube, how many small cubes show a face?

    Show the worked solution

    n cubed minus (n minus 2) cubed, which expands to 6n squared minus 12n plus 8. Everything not on the surface forms a hidden cube with one layer peeled from each side, so its side is n minus 2. For n = 3 that is 27 minus 1, or 26; for n = 10 it is 488. If the interviewer means the coloured squares instead, the answer is 6n squared.

    Why count what you cannot see?

    To count the tiles round the edge of a courtyard, it is easier to measure the whole yard and subtract the inner lawn than to walk the border without counting corners twice. The cubes not on the surface form one clean block of side n minus 2, so subtracting it from n cubed avoids every double-counting trap at the edges and corners.

    Count the hidden core and subtract it from the wholeHidden core: (n - 2)^3 = 1n = 3: 27 - 1 = 26 on the surfacenallcoresurface280832712646485651252798101,000512488surface = 6n^2 - 12n + 8
    In a 3 by 3 by 3 cube only the centre cube is hidden, so 26 of the 27 show a face; the same subtraction of a hidden core of side n minus 2 gives 8, 26, 56, 98 and 488 for n equal to 2, 3, 4, 5 and 10.
    The relationship
    n3−(n−2)3=6n2−12n+8n^3 - (n-2)^3 = 6n^2 - 12n + 8
    n^3all the small cubes
    (n-2)^3the hidden core after peeling one layer from every side
    What it says in wordsSurface cubes are all cubes less the core you cannot see.

    How do you check the formula a second way?

    Count by type. There are always 8 corner cubes, 12 edges each carrying n minus 2 cubes between the corners, and 6 faces each with an (n minus 2) by (n minus 2) centre. That is 8 plus 12(n minus 2) plus 6(n minus 2) squared, which expands to 6n squared minus 12n plus 8. Two routes agreeing is the check the interviewer wants to hear.

    Two edge cases show care. The formula needs n of at least 2; a single cube, n = 1, is all surface, and the formula would wrongly give 2. And the question is sometimes asked as surface area: the number of coloured squares is 6n squared, 54 for a standard cube. Ask which is meant before answering.

    Where candidates lose it

    The fast wrong answer is 6n squared, which counts the stickers, not the cubes: every edge cube is counted twice and every corner three times. On a standard cube that gives 54 against the true 26.

    The second loss is giving the formula with no check. Say the corner, edge and face split once; it takes ten seconds and proves the algebra.

    What the interviewer asks next

    • How many small cubes show exactly two faces, as a formula in n?
    • For what n are more than half the cubes hidden?
    • Now the cube is n by n by m. Generalise the count.

    Asked at T. Rowe Price, Equities, Baltimore, 2020 (Wall Street Oasis): Give an equation that yields the surface area of an n by n by n Rubic's cube based on number of blocks per side.

Fin Maverick Free CoursesExplore Free Courses
Fin Maverick BootcampsExplore Bootcamps
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.