Two Sigma Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Perform no-intercept linear regression from two datasets
You are given two pandas datasets to fit an OLS model without an intercept (through origin). Dataset A (features): df_X(user_id, clicks, impressions)....
Analyze NYC taxi trips efficiently over last 7 days
Use today = 2025-09-01. Consider NYC taxi trip data over the last 7 days inclusive (2025-08-26 to 2025-09-01, America/New_York). You receive two datas...
Compute robust linear interpolation with edge cases
You are given two distinct points (x0, y0) and (x1, y1) with x0 != x1. a) Derive the linear interpolation function f(x) on [min(x0, x1), max(x0, x1)] ...
Solve tree partition and IPO allocation
1) Tree partitioning for minimum difference: Given a rooted tree as an array parent of length n (parent[i] gives the parent of node i, and parent[root...
Solve capital selection and grid escape
Implement two functions for algorithmic practice: 1) MaximizeCapitalAfterProjects(k, initialCapital, requiredCapital, profit): You may pick at most k ...
Explain move and recent project
Behavioral + Project Deep-Dive: Motivation and Recent Project Context: Onsite behavioral prompt for a Quantitative Software Engineer role. The intervi...
Compute maximum currency exchange rate
You are given a set of currencies and the direct exchange rates between some pairs of them. Each direct exchange rate tells you how many units of one ...