D. E. Shaw interview questions - a complete guide
D. E. Shaw's online test is reported to have a probability and quant section alongside coding. The interviews also look at depth in DBMS and C++.
About D. E. Shaw
D. E. Shaw & Co. is a global investment and technology firm that invests using maths and computing. In India it has offices in Hyderabad, Bengaluru and Gurugram - with software, quant and finance roles.
This guide covers 12 D. E. Shaw interview questions with answers - what each question checks and how to answer it - plus the D. E. Shaw interview process, round by round, a 7-day preparation plan for freshers, tips and the mistakes to avoid.
D. E. Shaw hiring process
Online test
Reported: 3 coding questions and a quant/probability section.
Technical interviews
Live coding on CodePair, OOP, DBMS (normalisation, indexing, sharding) and C++ output.
HR
Motivation and fit.
D. E. Shaw does not publish its India fresher interview process in detail (as of our check). This is based on candidate reports - many of them for experienced roles, so the fresher process can differ. Confirm with the recruiter.
Sources (checked 16 October 2026): D. E. Shaw India Careers. Hiring processes change - read the official notice before you apply.
D. E. Shaw interview questions and answers
Probability and quant
1.Roll a dice until a 6 comes - how many rolls on average?
- What they're checking
- Expected value.
- How to answer
- Each roll succeeds with probability 1/6 - a geometric distribution, expected = 1 / (1/6) = 6.
2.Toss a coin until two heads in a row (HH) - the expected number of flips?
- What they're checking
- Expected value through states.
- How to answer
- E = from the start, E1 = after one H. E = 1 + E/2 + E1/2; E1 = 1 + E/2 (a T goes back to the start). Solving gives E = 6.
3.A random number from 1 to 100 - the probability it is divisible by 3 or 5?
- What they're checking
- Inclusion-exclusion.
- How to answer
- 33 divisible by 3, 20 by 5, 6 by both (15). 33 + 20 - 6 = 47. Probability 0.47.
DBMS and C++
4.What is database sharding and how would you choose the shard key?
- What they're checking
- Reported in interviews.
- How to answer
- Splitting data across several databases. The shard key should spread data evenly and send common queries to one shard (such as user_id). A wrong key = a hot shard or every query hitting every shard.
5.When do you denormalise?
- What they're checking
- The other side of normalisation.
- How to answer
- When joins are very expensive and reads dominate - duplicating some data makes reads faster. In exchange, updates get harder and there is a risk of inconsistency.
6.There is an index on the column, but the query is still slow - what could be the reason?
- What they're checking
- Indexing in depth.
- How to answer
- A function on the column (WHERE YEAR(date) = ...), LIKE '%abc', a type mismatch, or few distinct values in the column - the optimizer skips the index. Check with EXPLAIN.
7.If a virtual function is called in a base class constructor, which version runs?
- What they're checking
- A C++ output question.
- How to answer
- The base one - during construction the object isn't derived yet, so virtual dispatch stops at the base. The same in destructors.
Coding
8.How many inversions are in an array (i < j and a[i] > a[j])?
- What they're checking
- A smart use of merge sort.
- How to answer
- In merge sort's merge step, when the right element is smaller, all remaining left elements are inversions - keep adding. O(n log n).
9.Find the sum of the minimums of all subarrays.
- What they're checking
- A monotonic stack.
- How to answer
- For each element, in how many subarrays it is the minimum: the first smaller on the left and on the right (with a stack). Contribution = value x left x right.
10.What would you keep in mind while coding with the interviewer on CodePair?
- What they're checking
- A live round.
- How to answer
- Clarify the question first, state the approach, then code; keep talking; test with examples at the end. Listen carefully to hints.
HR
11.How did you use quantitative (numbers-based) thinking in a project?
- What they're checking
- The firm's DNA.
- How to answer
- How you decided with data or maths - what you measured, what came out, what changed.
12.Why D. E. Shaw?
- What they're checking
- Motivation.
- How to answer
- The meeting of maths, computing and finance, and a love of hard problems - specific.
7-day preparation plan for the D. E. Shaw interview
- Day 1: Probability - expected value, conditional.
- Day 2: DSA - monotonic stacks, inversions.
- Day 3: DBMS - indexing, sharding, normalisation.
- Day 4: C++ - object lifecycle and output questions.
- Day 5: OOP design.
- Day 6: A timed online test mock (coding + quant).
- Day 7: A CodePair-style mock + HR.
Preparation tips
- Practise probability and expected value - a separate section in the test.
- Indexing, sharding and normalisation in DBMS in depth.
- C++ output questions - constructors, virtual, static.
- Medium-hard DSA - monotonic stacks, merge sort tricks.
Mistakes to avoid
- Not preparing for the quant section.
- Treating an index as the answer to every slow query.
- Staying silent during live coding.
Frequently asked questions
What is in the D. E. Shaw online test?
According to reports, 3 coding questions and a quant/probability section.
Where are D. E. Shaw's India offices?
Hyderabad, Bengaluru and Gurugram.
What is asked in D. E. Shaw's technical round?
Coding on CodePair, OOP, DBMS (indexing, sharding) and C++ output - according to reports.
Do I need to know finance for D. E. Shaw?
It isn't reported as required for software roles; maths and problem solving matter more.
Similar companies - Finance and investment banks
- Goldman Sachs interview questions
- JPMorgan Chase interview questions
- Morgan Stanley interview questions
- American Express interview questions
- Visa interview questions
- Mastercard interview questions
- Wells Fargo interview questions
- Bank of America interview questions
- Citi interview questions
- Fidelity Investments interview questions
- BlackRock interview questions
- Arcesium interview questions
More company guides
- TCS interview questions
- Infosys interview questions
- Wipro interview questions
- Accenture interview questions
- All companies →
Read next
- How to Answer "Tell Me About Yourself" (for Freshers and Experienced)
- Campus Placement Interview Preparation: A Round-by-Round Guide
On a live call, Cuelyte AI hears questions like these and has an answer ready in about a second, built from your resume and notes. Coding interviews: how Cuelyte AI helps
Ready for your D. E. Shaw interview?
Practise these questions with Cuelyte AI: add your resume, type a question and get a clear answer in your own words - in English, Hindi or Hinglish. Free to start.