Learn · reason · practise

Build the foundations for your interview.

Choose a role and build the foundations in a useful order. Fourteen original mini-lessons connect worked examples, independent checks, guided lessons and free interview questions. Start with what you need, then return to test your reasoning without hints.

Quantitative tradingQuantitative researchSoftware engineering

Software engineering

Prioritize contracts, invariants, state modeling and complexity, with numerical literacy for quantitative teams.

7 ordered modules · start where your prerequisites are solid

Read the explanation, work through the example, attempt the check, then solve fresh questions. Revisit them later without hints. This sequence is a study recommendation; it does not certify interview readiness.

  1. 1

    Number sense and explicit models

    Guided arithmetic lessons plus a short modeling bridge.

    Mini lesson · 3 practice questions · 5 guided course lessons

    What you’ll learn

    • Keep units consistent.
    • Translate words into equations.
    • Check magnitude before exact arithmetic.

    The idea

    Choose a representation before calculating. A rate is a quantity per unit time; adding travel times is valid, averaging unlike rates usually needs weights. State assumptions, solve, and substitute the result into the original quantities.

    Worked example

    A car covers 60 km at 30 km/h and 60 km at 60 km/h. Find its average speed.

    1. The first leg takes 60/30=2 hours; the second takes 60/60=1 hour.
    2. Total distance is 120 km and total time is 3 hours.
    3. Average speed is 120/3=40 km/h; the slower leg gets more time weight.

    40 km/h

    Try it yourself

    Compute 48×25 using a convenient scale.

    Show a hint

    25 is 100/4.

    Check your reasoning

    1200

    48×100/4=4800/4=1200. This also lies just below 50×25=1250.

    Learn with guided practice

    Apply it to interview questions

    Further study beyond this mini lesson
    • No assessment certification; timing drills measure arithmetic rather than full interview readiness.
    Sources and scope

    Learnr’s wording, examples and role sequence are original. References support the topic and method; this is not an employer’s prescribed syllabus.

  2. 2

    Counting and complements

    Guided counting lessons with finite sample-space practice.

    Mini lesson · 3 practice questions · 4 guided course lessons

    Build on: Number sense and explicit models

    What you’ll learn

    • Separate ordered from unordered outcomes.
    • Use complements.
    • Prove an information lower bound.

    The idea

    Counting requires a precise object: a sequence differs from a subset. When counting favorable outcomes, ensure all denominator outcomes are equally likely. For guarantees, count how many distinct states an observation can distinguish.

    Worked example

    Select two different people uniformly from five. Two specific people are siblings. What is the probability the pair contains both siblings?

    1. There are 5×4 ordered draws, but each pair is counted twice. Hence 10 unordered pairs.
    2. Exactly one unordered pair contains both specified siblings.
    3. The probability is 1/10; using 20 in the denominator would require counting two favorable orders.

    1/10

    Try it yourself

    How many length 3 binary strings contain at least one 1?

    Show a hint

    Subtract the all-zero string from all strings.

    Check your reasoning

    7

    There are 2³=8 strings. Exactly 000 has no 1, leaving 7.

    Learn with guided practice

    Apply it to interview questions

    Further study beyond this mini lesson
    • Advanced generating functions and asymptotic combinatorics remain outside this mini-lesson.
    Sources and scope

    Learnr’s wording, examples and role sequence are original. References support the topic and method; this is not an employer’s prescribed syllabus.

  3. 3

    Algorithms: contracts and invariants

    New engineering mini-lesson plus executable Python question solutions.

    Mini lesson · 4 practice questions

    Build on: Number sense and explicit models

    What you’ll learn

    • Specify input and duplicate semantics.
    • Prove a loop invariant.
    • Analyze time and memory separately.

    The idea

    An algorithm needs a contract before code: what is returned, how duplicates count, and what empty input means. A loop invariant states what the stored state means before each iteration. Complexity follows from the total number of operations, not just the number of nested loops visible in code.

    Worked example

    Does array[3,3] contain two distinct indices whose values sum to 6? Explain a one-pass set algorithm and the ordering of its check and insert.

    1. Before reading index i, the seen set contains values only from indices smaller than i.
    2. At each value x, test whether 6-x is already seen, then insert x. The first 3 is inserted and the second finds it.
    3. Thus the answer is true using distinct indices. Inserting before checking would wrongly let a single[3] match itself. Expected time is O(n), additional space O(n).

    true

    Try it yourself

    Under that distinct-index contract, does[3] contain a pair summing to 6?

    Show a hint

    There is no earlier element at its only index.

    Check your reasoning

    false

    Check before insertion: seen is empty, so no partner exists; the loop then ends.

    Apply it to interview questions

    Further study beyond this mini lesson
    • No full guided programming course mapped. Need implementation feedback, debugging sessions and adversarial performance practice.
    Sources and scope

    Learnr’s wording, examples and role sequence are original. References support the topic and method; this is not an employer’s prescribed syllabus.

  4. 4

    Graphs and shortest-path states

    New graph mini-lesson plus programming practice.

    Mini lesson · 4 practice questions

    Build on: Algorithms: contracts and invariants

    What you’ll learn

    • Choose BFS for unit-cost edges.
    • Maintain discovered-state invariants.
    • Distinguish directed reachability and weighted distance.

    The idea

    A graph state must describe what determines legal next moves. Breadth-first search processes unweighted states by increasing distance; discovering a vertex once is enough because all earlier queue layers are no farther away. Weighted edges require a different ordering such as Dijkstra when weights are nonnegative.

    Worked example

    A directed unweighted graph has edges A→B, A→C, B→D, C→D, D→E. Find the shortest distance from A to E and describe BFS layers.

    1. Layer 0 is{A}. Its newly discovered neighbors form layer 1={B, C}.
    2. Both lead to D, but D is marked discovered once; layer 2={D}.
    3. E is discovered from D at layer 3, so shortest distance is 3 edges. No earlier layer reaches E.

    3

    Try it yourself

    Add edge A→E. What is the new shortest distance?

    Show a hint

    BFS first discovers E while expanding A.

    Check your reasoning

    1

    A direct edge is a one-edge path; a nontrivial path cannot use fewer than one edge.

    Apply it to interview questions

    Further study beyond this mini lesson
    • No full guided graph course mapped; add traversal visualization, heap-based Dijkstra and union-find implementations.
    Sources and scope

    Learnr’s wording, examples and role sequence are original. References support the topic and method; this is not an employer’s prescribed syllabus.

  5. 5

    Proof, ambiguity and collaborative explanation

    New proof mini-lesson with puzzle practice.

    Mini lesson · 4 practice questions · 1 guided course lesson

    Build on: Counting and complements · Algorithms: contracts and invariants

    What you’ll learn

    • Separate a construction from an optimality proof.
    • State ambiguity rather than inventing certainty.
    • Explain a lower bound and a matching construction.

    The idea

    A construction proves feasibility; a lower bound proves necessity. Optimality requires both. Start by stating the model and what the answer means, then give the shortest argument establishing it. When observations do not determine a unique result, exhibit two consistent models rather than silently choosing one.

    Worked example

    Exactly one of 9 identical coins is known heavier. An ideal balance compares equal-size groups. Prove the minimum worst-case weighings.

    1. One weighing has only three outcomes, insufficient for nine possible heavy coins. Thus at least two weighings are needed.
    2. Weigh three coins against three. The heavier group is selected, or the unweighed group if balanced.
    3. Among the resulting three, compare one against one. The result identifies the heavy coin, meeting the lower bound.

    2

    Try it yourself

    Exactly one of 3 coins is known heavier. Minimum worst-case weighings?

    Show a hint

    Compare one against one and interpret all three outcomes.

    Check your reasoning

    1

    Left heavy, right heavy, or balance identify the first, second, or unweighed coin respectively.

    Learn with guided practice

    Apply it to interview questions

    Further study beyond this mini lesson
    • This mini-lesson does not replace live mock interviews or assess communication under pressure.
    Sources and scope

    Learnr’s wording, examples and role sequence are original. References support the topic and method; this is not an employer’s prescribed syllabus.

  6. 6

    Conditioning and base rates

    Guided Bayes lessons plus a population-count mini-example.

    Mini lesson · 3 practice questions · 2 guided course lessons

    Build on: Counting and complements

    What you’ll learn

    • Define the conditioning event.
    • Use likelihood and prior separately.
    • Normalize over the observed population.

    The idea

    Conditioning restricts attention to outcomes consistent with what you observed. A positive result is not a diagnosis: its probability depends on how often the condition occurs and how often alternatives generate positives. Population counts make the denominator visible.

    Worked example

    A condition occurs in 1% of people. A test detects 90% of cases and falsely flags 5% of noncases. In a representative population of 10,000, what fraction of positive tests are true cases?

    1. There are 100 cases and 9900 noncases. Expected true positives are 90 and false positives 495.
    2. Positive results total 585; the relevant population is positives, not all people or all cases.
    3. The desired fraction is 90/585=2/13, approximately 15.38%.

    2/13

    Try it yourself

    A fair coin is flipped twice. Given at least one head, what is P(two heads)?

    Show a hint

    List the equally likely surviving ordered outcomes.

    Check your reasoning

    1/3

    HH, HT, TH survive; onlyHH has two heads. The observation protocol is exactly the event stated.

    Learn with guided practice

    Apply it to interview questions

    Further study beyond this mini lesson
    • Continuous posterior densities and conjugate-prior derivations need further study.
    Sources and scope

    Learnr’s wording, examples and role sequence are original. References support the topic and method; this is not an employer’s prescribed syllabus.

  7. 7

    Expectation, variance and dependence

    Guided expectation/statistics lessons.

    Mini lesson · 3 practice questions · 4 guided course lessons

    Build on: Conditioning and base rates

    What you’ll learn

    • Use indicators and linearity.
    • Include covariance.
    • Separate average payoff from risk.

    The idea

    Expectation averages values using probabilities. Linearity does not require independence. Variance measures squared deviations and is not linear: Var(X+Y)=Var(X)+Var(Y)+2 Cov(X, Y). Check dependence before discarding the covariance term.

    Worked example

    Flip one fair coin. Let X=1 for heads and 0 for tails; let Y=X. Find E[X+Y] and Var(X+Y).

    1. X+Y equals 0 or 2 with probability 1/2 each, so its mean is 1.
    2. Squared deviations from 1 are both 1, hence variance 1.
    3. Adding individual variances gives only 1/2; the missing 1/2 is 2 Cov(X, Y), because X and Y are identical.

    mean=1; variance=1

    Try it yourself

    Let X be fair Bernoulli and Y=1-X. What is Var(X+Y)?

    Show a hint

    Inspect the sum before expanding a formula.

    Check your reasoning

    0

    X+Y is always 1. Negative covariance exactly cancels the two individual variances.

    Learn with guided practice

    Apply it to interview questions

    Further study beyond this mini lesson
    • Limit theorems, concentration bounds and statistical confidence intervals require a longer course.
    Sources and scope

    Learnr’s wording, examples and role sequence are original. References support the topic and method; this is not an employer’s prescribed syllabus.

Curriculum research updated 2026-10-15. Role paths share foundations and branch by the work you want to do.