D. E. Shaw - interview guide

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++.

Language:EnglishHinglish

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

  1. Online test

    Reported: 3 coding questions and a quant/probability section.

  2. Technical interviews

    Live coding on CodePair, OOP, DBMS (normalisation, indexing, sharding) and C++ output.

  3. 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. 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. 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. 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++

  1. 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.
  2. 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.
  3. 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.
  4. 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

  1. 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).
  2. 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.
  3. 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

  1. 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.
  2. 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

  1. Day 1: Probability - expected value, conditional.
  2. Day 2: DSA - monotonic stacks, inversions.
  3. Day 3: DBMS - indexing, sharding, normalisation.
  4. Day 4: C++ - object lifecycle and output questions.
  5. Day 5: OOP design.
  6. Day 6: A timed online test mock (coding + quant).
  7. 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.

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.