QuantForcesquant interview practice

Problemset

179 / 689 problems
Filters
#NameTagsDifficultySolved by
gb_ch02_q001Screwy pirates
Green Book · Ch 2 · Brain Teasers
1500x0
gb_ch02_q002Tiger and sheep
Green Book · Ch 2 · Brain Teasers
1300x0
gb_ch02_q003River crossing
Green Book · Ch 2 · Brain Teasers
1100x0
gb_ch02_q004Birthday problem (Cheryl-style)
Green Book · Ch 2 · Brain Teasers
1400x0
gb_ch02_q005Card game (dealer always wins)
Green Book · Ch 2 · Brain Teasers
1200x0
gb_ch02_q006Burning ropes
Green Book · Ch 2 · Brain Teasers
1000x0
gb_ch02_q007Defective ball
Green Book · Ch 2 · Brain Teasers
1700x0
gb_ch02_q008Trailing zeros
Green Book · Ch 2 · Brain Teasers
900x0
gb_ch02_q009Horse race
Green Book · Ch 2 · Brain Teasers
1500x0
gb_ch02_q010Infinite sequence
Green Book · Ch 2 · Brain Teasers
1000x0
gb_ch02_q011Box packing
Green Book · Ch 2 · Brain Teasers
1700x0
gb_ch02_q012Calendar cubes
Green Book · Ch 2 · Brain Teasers
1400x0
gb_ch02_q013Door to offer
Green Book · Ch 2 · Brain Teasers
1300x0
gb_ch02_q014Message delivery
Green Book · Ch 2 · Brain Teasers
1200x0
gb_ch02_q015Last ball
Green Book · Ch 2 · Brain Teasers
1100x0
gb_ch02_q016Light switches
Green Book · Ch 2 · Brain Teasers
1100x0
gb_ch02_q017Quant salary
Green Book · Ch 2 · Brain Teasers
1300x0
gb_ch02_q018Coin piles
Green Book · Ch 2 · Brain Teasers
1200x1
gb_ch02_q019Mislabeled bags
Green Book · Ch 2 · Brain Teasers
1100x0
gb_ch02_q020Wise men
Green Book · Ch 2 · Brain Teasers
1700x0
gb_ch02_q021Clock pieces
Green Book · Ch 2 · Brain Teasers
1400x0
gb_ch02_q022Missing integers
Green Book · Ch 2 · Brain Teasers
1300x0
gb_ch02_q023Counterfeit coins I
Green Book · Ch 2 · Brain Teasers
1300x0
gb_ch02_q024Glass balls
Green Book · Ch 2 · Brain Teasers
1500x0
gb_ch02_q025Matching socks
Green Book · Ch 2 · Brain Teasers
800x0
gb_ch02_q026Handshakes
Green Book · Ch 2 · Brain Teasers
1100x0
gb_ch02_q027Have we met before?
Green Book · Ch 2 · Brain Teasers
1500x0
gb_ch02_q028Ants on a square
Green Book · Ch 2 · Brain Teasers
1300x0
gb_ch02_q029Counterfeit coins II
Green Book · Ch 2 · Brain Teasers
1500x0
gb_ch02_q030Prisoner problem
Green Book · Ch 2 · Brain Teasers
1600x0
gb_ch02_q031Division by 9
Green Book · Ch 2 · Brain Teasers
900x0
gb_ch02_q032Chameleon colors
Green Book · Ch 2 · Brain Teasers
1600x0
gb_ch02_q033Coin split problem
Green Book · Ch 2 · Brain Teasers
1500x0
gb_ch02_q034Chocolate bar problem
Green Book · Ch 2 · Brain Teasers
1000x0
gb_ch02_q035Race track
Green Book · Ch 2 · Brain Teasers
1500x0
gb_ch02_q036Irrational number
Green Book · Ch 2 · Brain Teasers
900x0
gb_ch02_q037Rainbow hats
Green Book · Ch 2 · Brain Teasers
1800x0
gb_ch03_q001Basics of derivatives
Green Book · Ch 3 · Calculus and Linear Algebra
1300x0
gb_ch03_q002Maximum and minimum
Green Book · Ch 3 · Calculus and Linear Algebra
1400x0
gb_ch03_q003L'Hospital's rule
Green Book · Ch 3 · Calculus and Linear Algebra
1000x0
gb_ch03_q004Basics of integration (ln x)
Green Book · Ch 3 · Calculus and Linear Algebra
1000x0
gb_ch03_q005Basics of integration (sec x)
Green Book · Ch 3 · Calculus and Linear Algebra
1300x0
gb_ch03_q006Applications of integration (two cylinders)
Green Book · Ch 3 · Calculus and Linear Algebra
1500x0
gb_ch03_q007Snow plow problem
Green Book · Ch 3 · Calculus and Linear Algebra
1700x0
gb_ch03_q008Expected value using integration
Green Book · Ch 3 · Calculus and Linear Algebra
1400x0
gb_ch03_q009Gaussian integral
Green Book · Ch 3 · Calculus and Linear Algebra
1500x0
gb_ch03_q010Taylor series — i^i
Green Book · Ch 3 · Calculus and Linear Algebra
1200x0
gb_ch03_q011Bernoulli inequality via Taylor
Green Book · Ch 3 · Calculus and Linear Algebra
1300x0
gb_ch03_q012Newton's method — square root
Green Book · Ch 3 · Calculus and Linear Algebra
1100x0
gb_ch03_q013Alternative root-finding algorithms
Green Book · Ch 3 · Calculus and Linear Algebra
1200x0
gb_ch03_q014Lagrange multipliers — distance to plane
Green Book · Ch 3 · Calculus and Linear Algebra
1300x0
gb_ch03_q015Separable ODE (exponential)
Green Book · Ch 3 · Calculus and Linear Algebra
1100x0
gb_ch03_q016Separable ODE (substitution)
Green Book · Ch 3 · Calculus and Linear Algebra
1400x0
gb_ch03_q017First-order linear ODE
Green Book · Ch 3 · Calculus and Linear Algebra
1300x0
gb_ch03_q018Homogeneous linear ODE
Green Book · Ch 3 · Calculus and Linear Algebra
1400x0
gb_ch03_q019Nonhomogeneous linear ODEs
Green Book · Ch 3 · Calculus and Linear Algebra
1400x0
gb_ch03_q020Vectors — correlation bounds via geometry
Green Book · Ch 3 · Calculus and Linear Algebra
1500x0
gb_ch03_q021Linear least squares algorithm
Green Book · Ch 3 · Calculus and Linear Algebra
1500x0
gb_ch03_q022Eigenvalues and eigenvectors of a 2x2 matrix
Green Book · Ch 3 · Calculus and Linear Algebra
1100x0
gb_ch03_q023Correlation bounds via positive semidefiniteness
Green Book · Ch 3 · Calculus and Linear Algebra
1600x0
gb_ch03_q024Generate correlated normals via Cholesky
Green Book · Ch 3 · Calculus and Linear Algebra
1300x0
gb_ch04_q001Coin toss game
Green Book · Ch 4 · Probability Theory
1400x0
gb_ch04_q002Card game
Green Book · Ch 4 · Probability Theory
1400x0
gb_ch04_q003Drunk passenger
Green Book · Ch 4 · Probability Theory
1500x0
gb_ch04_q004N points on a circle
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q005Poker hands
Green Book · Ch 4 · Probability Theory
1200x0
gb_ch04_q006Hopping rabbit
Green Book · Ch 4 · Probability Theory
1100x0
gb_ch04_q007Screwy pirates 2
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q008Chess tournament
Green Book · Ch 4 · Probability Theory
1600x0
gb_ch04_q009Application letters
Green Book · Ch 4 · Probability Theory
1500x0
gb_ch04_q010Birthday problem
Green Book · Ch 4 · Probability Theory
1100x0
gb_ch04_q011100th digit
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q012Cubic of integer
Green Book · Ch 4 · Probability Theory
1500x0
gb_ch04_q013Boys and girls
Green Book · Ch 4 · Probability Theory
1400x0
gb_ch04_q014All-girl world?
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q015Unfair coin
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q016Fair probability from an unfair coin
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q017Dart game
Green Book · Ch 4 · Probability Theory
1500x0
gb_ch04_q018Birthday line
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q019Dice order
Green Book · Ch 4 · Probability Theory
1100x0
gb_ch04_q020Monty Hall problem
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q021Amoeba population
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q022Candies in a jar
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q023Coin toss game (HT sequence)
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q024Russian roulette series
Green Book · Ch 4 · Probability Theory
1900x0
gb_ch04_q025Aces
Green Book · Ch 4 · Probability Theory
1500x0
gb_ch04_q026Gambler's ruin problem
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q027Basketball scores
Green Book · Ch 4 · Probability Theory
1900x0
gb_ch04_q028Cars on road
Green Book · Ch 4 · Probability Theory
1100x0
gb_ch04_q029Meeting probability
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q030Probability of triangle
Green Book · Ch 4 · Probability Theory
1500x0
gb_ch04_q031Property of Poisson process
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q032Moments of normal distribution
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q033Connecting noodles
Green Book · Ch 4 · Probability Theory
1900x0
gb_ch04_q034Optimal hedge ratio
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q035Dice game
Green Book · Ch 4 · Probability Theory
1300x0
gb_ch04_q036Card game (aces position)
Green Book · Ch 4 · Probability Theory
1500x1
gb_ch04_q037Sum of random variables
Green Book · Ch 4 · Probability Theory
1900x0
gb_ch04_q038Coupon collection
Green Book · Ch 4 · Probability Theory
1600x0
gb_ch04_q039Joint default probability
Green Book · Ch 4 · Probability Theory
1600x0
gb_ch04_q040Expected value of max and min
Green Book · Ch 4 · Probability Theory
1400x0
gb_ch04_q041Correlation of max and min
Green Book · Ch 4 · Probability Theory
1700x0
gb_ch04_q042Random ants
Green Book · Ch 4 · Probability Theory
1800x0
gb_ch05_q001Gambler's ruin problem (biased)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1400x0
gb_ch05_q002Dice question (sum 12 vs two 7s)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1700x0
gb_ch05_q003Coin triplets — expected hitting times
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1700x0
gb_ch05_q004Coin triplets — HHH before THH
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1600x0
gb_ch05_q005Coin triplets — Penney's ante (choose your sequence)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
2000x0
gb_ch05_q006Color balls
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
2100x0
gb_ch05_q007Drunk man
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1700x0
gb_ch05_q008Dice game (via Wald's equality)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1300x0
gb_ch05_q009Ticket line (ballot problem)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1900x0
gb_ch05_q010Coin sequence — expected tosses for n heads
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1700x0
gb_ch05_q011Dice game (3 rolls, dynamic programming)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1500x0
gb_ch05_q012World series (binomial-tree betting)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1800x0
gb_ch05_q013Dynamic dice game
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1800x0
gb_ch05_q014Dynamic card game
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1900x0
gb_ch05_q015Brownian motion definition and properties
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1100x0
gb_ch05_q016Correlation of Brownian motion and its square
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1300x0
gb_ch05_q017P(B_1 > 0 and B_2 < 0)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1900x0
gb_ch05_q018Stopping time — BM hits ±1
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1500x0
gb_ch05_q019First passage time
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1900x0
gb_ch05_q020BM hits 3 before -5 (with/without drift)
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1800x0
gb_ch05_q021Generalized Wiener process reaches -1
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1800x0
gb_ch05_q022Is sqrt(t) * B_t a martingale?
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1600x0
gb_ch05_q023Is W(t)^3 a martingale?
Green Book · Ch 5 · Stochastic Process and Stochastic Calculus
1500x0
gb_ch06_q001Price direction of options
Green Book · Ch 6 · Finance
1000x0
gb_ch06_q002Put-call parity (European)
Green Book · Ch 6 · Finance
1200x0
gb_ch06_q003American vs European calls
Green Book · Ch 6 · Finance
1500x0
gb_ch06_q004Put arbitrage (strikes 80 and 90)
Green Book · Ch 6 · Finance
1700x0
gb_ch06_q005Black-Scholes-Merton differential equation
Green Book · Ch 6 · Finance
1700x0
gb_ch06_q006Assumptions behind Black-Scholes
Green Book · Ch 6 · Finance
800x0
gb_ch06_q007Derive Black-Scholes via risk-neutral expectation
Green Book · Ch 6 · Finance
1900x0
gb_ch06_q008Derive Black-Scholes by solving the PDE
Green Book · Ch 6 · Finance
2200x0
gb_ch06_q009Cash-or-nothing call at stock-price barrier
Green Book · Ch 6 · Finance
1900x0
gb_ch06_q010Value of 1/S at maturity
Green Book · Ch 6 · Finance
1900x0
gb_ch06_q011Delta of European call (non-dividend stock)
Green Book · Ch 6 · Finance
1500x0
gb_ch06_q012Delta of at-the-money call
Green Book · Ch 6 · Finance
1300x0
gb_ch06_q013Dynamic delta hedging
Green Book · Ch 6 · Finance
1300x0
gb_ch06_q014Estimate ATM call value (Brenner-Subrahmanyam)
Green Book · Ch 6 · Finance
1400x0
gb_ch06_q015Gamma of an at-the-money option near maturity
Green Book · Ch 6 · Finance
1400x0
gb_ch06_q016When does a European option have positive theta?
Green Book · Ch 6 · Finance
1500x0
gb_ch06_q017Delta-hedged call: gamma vs theta
Green Book · Ch 6 · Finance
1500x0
gb_ch06_q018Implied volatility and volatility smile
Green Book · Ch 6 · Finance
1200x0
gb_ch06_q019Constant vs random volatility — which call is more expensive?
Green Book · Ch 6 · Finance
1700x0
gb_ch06_q020Risk-neutral density from option prices
Green Book · Ch 6 · Finance
1800x0
gb_ch06_q021Bull call spread — price boundaries
Green Book · Ch 6 · Finance
1300x0
gb_ch06_q022Straddle
Green Book · Ch 6 · Finance
1100x0
gb_ch06_q023Binary (cash-or-nothing) option pricing
Green Book · Ch 6 · Finance
1700x0
gb_ch06_q024Exchange option (Margrabe formula)
Green Book · Ch 6 · Finance
2100x0
gb_ch06_q025Portfolio optimization (two stocks)
Green Book · Ch 6 · Finance
1400x0
gb_ch06_q026Value at risk (VaR)
Green Book · Ch 6 · Finance
1300x0
gb_ch06_q027Duration and convexity
Green Book · Ch 6 · Finance
1200x0
gb_ch06_q028Inverse floater pricing
Green Book · Ch 6 · Finance
1800x0
gb_ch06_q029Forward vs futures contracts
Green Book · Ch 6 · Finance
1300x0
gb_ch06_q030Interest rate models
Green Book · Ch 6 · Finance
1300x0
gb_ch07_q001Number swap (without temp variable)
Green Book · Ch 7 · Algorithms and Numerical Methods
1000x0
gb_ch07_q002Unique elements in a sorted array
Green Book · Ch 7 · Algorithms and Numerical Methods
800x0
gb_ch07_q003Horner's algorithm
Green Book · Ch 7 · Algorithms and Numerical Methods
1100x0
gb_ch07_q004Moving average
Green Book · Ch 7 · Algorithms and Numerical Methods
1000x0
gb_ch07_q005Sorting algorithms (3 with complexity)
Green Book · Ch 7 · Algorithms and Numerical Methods
1200x0
gb_ch07_q006Random permutation — shuffle 52 cards
Green Book · Ch 7 · Algorithms and Numerical Methods
1300x0
gb_ch07_q007Random permutation — sequential character pick
Green Book · Ch 7 · Algorithms and Numerical Methods
1400x0
gb_ch07_q008Find min and max in 3n/2 comparisons
Green Book · Ch 7 · Algorithms and Numerical Methods
1400x0
gb_ch07_q009First nonzero element in array
Green Book · Ch 7 · Algorithms and Numerical Methods
1300x0
gb_ch07_q010Search in sorted matrix
Green Book · Ch 7 · Algorithms and Numerical Methods
1400x0
gb_ch07_q011Fibonacci numbers — efficient computation
Green Book · Ch 7 · Algorithms and Numerical Methods
1500x0
gb_ch07_q012Maximum contiguous subarray (Kadane's algorithm)
Green Book · Ch 7 · Algorithms and Numerical Methods
1400x0
gb_ch07_q013Power of 2
Green Book · Ch 7 · Algorithms and Numerical Methods
1100x0
gb_ch07_q014Multiplication by 7
Green Book · Ch 7 · Algorithms and Numerical Methods
900x0
gb_ch07_q015Probability simulation with a fair coin
Green Book · Ch 7 · Algorithms and Numerical Methods
1700x0
gb_ch07_q016Poisonous wine
Green Book · Ch 7 · Algorithms and Numerical Methods
1500x0
gb_ch07_q017Monte Carlo for European call
Green Book · Ch 7 · Algorithms and Numerical Methods
1300x0
gb_ch07_q018Generate normal random variables from uniform
Green Book · Ch 7 · Algorithms and Numerical Methods
1400x0
gb_ch07_q019Variance reduction techniques
Green Book · Ch 7 · Algorithms and Numerical Methods
1400x0
gb_ch07_q020Monte Carlo for delta and gamma
Green Book · Ch 7 · Algorithms and Numerical Methods
1400x0
gb_ch07_q021Monte Carlo estimate of pi
Green Book · Ch 7 · Algorithms and Numerical Methods
1100x0
gb_ch07_q022Finite difference methods
Green Book · Ch 7 · Algorithms and Numerical Methods
1500x0
gb_ch07_q023Stability of explicit finite difference
Green Book · Ch 7 · Algorithms and Numerical Methods
1500x0