Mental Math & Estimation · Interview Question
Convert between log base 2 and base 10 in your head. What's log2(10)?
How to answer
From 2^10 ≈ 10^3, take log2: 10 ≈ 3·log2(10), so log2(10) ≈ 10/3 ≈ 3.32 (exact 3.3219); equivalently log10(2) ≈ 0.301. log2(N) = log10(N)×3.32; log10(N) = log2(N)/3.32. These two constants cover almost all log conversions.
Key idea: Confusing the direction: bits = digits × 3.32 (MORE bits than digits). Sanity-check: a 3-digit number needs ~10 bits.
More: Quant interview prep · Quant salary
Related Mental Math & Estimation questions
- 25 horses, races of 5 at a time, no clock. Minimum races to find the top 3, and why exactly that many?
- Approximate e^0.05 and e^x for small x. What's the rule?
- Convert 7/8 and 5/16 to decimals instantly. Why memorize the eighths/sixteenths table for timed rounds?
- Estimate 2^34 quickly. Key fact and value?