OUTCRY

PRACTICE GUIDE   TWO SIGMA

Two Sigma Coding and Data Analysis Practice Test

Outcry’s Two Sigma coding and data analysis practice section has 3 questions in 180 minutes. These numbers describe the linked mock; the source check below distinguishes published details from practice settings.

The three coding/data-analysis tasks, 180-minute clock, JavaScript environment, hidden tests and performance gates are Outcry’s design.

Outcry is not affiliated with Two Sigma and has no access to their assessment content. This guide describes an assessment format that candidates report publicly; the questions here are generated by Outcry and are not Two Sigma’s own.

What it screens

A quantitative investment manager applying machine learning and distributed computing to markets.

  • ✓Reading concurrent code and pointing at the defective line
  • ✓Order-book data structures: what happens on a cross, a cancel, a partial fill
  • ✓Algorithmic complexity chosen for the input sizes stated in the problem
  • ✓Monte Carlo methods and when a simulation beats a closed form

Where it sits at Two Sigma

Two Sigma’s public quantitative research guide names data analysis, coding/algorithms, statistics and research-domain discussion. It does not verify this three-task, three-hour online paper.

Practice stage: Research skills practice · assessment format unconfirmed. The three coding/data-analysis tasks, 180-minute clock, JavaScript environment, hidden tests and performance gates are Outcry’s design.

The format

These are the settings used by Outcry’s Two Sigma practice sitting. They are not automatically the employer’s published format; see the linked assessment’s source check.

Questions3
Time180 minutes
Per question60 minutes
Negative markingNo
Answer styleCode editor, run against hidden tests
Where it sitsResearch skills practice · assessment format unconfirmed

What it tests, with a worked example

Every example below is generated by Outcry, drawn from the same question generators the timed drills run. None of them is Two Sigma’s.

Data structure implementation

Build the thing rather than call it: an order book, a cache, a ring buffer. Graded by hidden tests, so there is no partial credit for an approach.

Complexity that is actually graded

Hidden tests sized so the naive solution times out. A correct answer that is too slow scores the same as a wrong one.

Reading someone else's code

A diff or a function with a bug in it, and the question is where.

Example

A hot loop does `results.push_back(x)` a million times with no other setup. What is the cheapest fix?

  • reserve() the final size once before the loop
  • Switch to std::list to avoid copying
  • Make results a static global
  • Use emplace_back instead of push_back

Answer reserve() the final size once before the loop

Growth reallocates and copies roughly log₂(n) times. One reserve makes it a single allocation. emplace_back saves a construction, not the reallocations.

Language and systems detail

Memory, references, undefined behaviour and the things that bite in production.

Example

A counting semaphore starts at 5. 7 completed wait operations and 5 completed signal operations have run against it. What is its value now?

  • 2
  • 3
  • 10
  • -2

Answer 3

Each completed wait subtracts one and each signal adds one: 5 - 7 + 5 = 3. Only completed waits count, which is why a negative reading would mean blocked processes rather than a legal value.

Numerical and data handling

Floating point, aggregation and joins on data that does not fit the obvious shape.

Example

A fund has volatility 20% and the index has volatility 24%. Their correlation is 0.8. What is the fund's beta to the index?

Answer 0.6666666666666666

Beta = correlation x (fund vol / index vol) = 0.8 x 20/24 = 0.667. Correlation and beta only agree when the two volatilities match, which here they do not.

Reading a spec precisely

Return type, ordering and tie-breaking are graded, and are where most silent failures come from.

What a good score looks like

Use this mock’s score and worked review to identify skills to practise. No Outcry score guarantees a pass or a hiring outcome; a current employer threshold for this practice paper has not been verified.

How to train for it

  1. 01Implement the core structures from scratch once each. The screens ask you to build them, not use them.
  2. 02Write the edge cases into your own tests first. That is where the hidden ones live.
  3. 03Get the function signature exactly right before anything else. Return type and ordering are graded, and a correct algorithm behind a wrong signature scores zero.

TRAIN IT HERE

The drills that match each section

SIT THE FULL BATTERY

All the sections back to back on one clock, marked the way the real screen marks them, with a by-skill breakdown at the end. Included with any pass.

MOCK SCREENS

Also reported at Two Sigma

Common questions

Is this Two Sigma’s official coding and data analysis test?
No. Outcry generates its own questions. Two Sigma’s public quantitative research guide names data analysis, coding/algorithms, statistics and research-domain discussion. It does not verify this three-task, three-hour online paper. The three coding/data-analysis tasks, 180-minute clock, JavaScript environment, hidden tests and performance gates are Outcry’s design.
How long is this coding and data analysis practice section?
3 questions in 180 minutes in the Outcry mock. These are practice settings unless the source check explicitly confirms them.
How is the practice marked?
Correct answers earn 1 mark unless the question states another weight. Wrong answers lose 0; unanswered items lose 0, including timeouts. These rules apply to this mock.
Where can I check the employer’s process?
See the public source check on the linked assessment. Your role-specific invitation governs the actual format, permitted tools and scoring.