Two Sigma Interview Questions
Practice the exact questions companies are asking right now.
Design a house-price prediction model
Problem You are asked to build a model to predict house sale prices for a city of your choice. Data (assume typical real-estate fields) You have a his...
Match readings with latest same-city humidity
Problem You are given two time-sorted lists of sensor readings: - Temperature records: (time, city, reading) - Humidity records: (time, city, reading)...
Implement binary encode/decode with frequency tree
Problem Implement a binary encoding and decoding scheme for strings based on character frequencies (Huffman-like coding). You must implement two funct...
Answer four core statistics questions
Problem set (timed) Answer the following four questions. 1) Covariance of order statistics Let \(X\) and \(Y\) be independent \(\mathrm{Unif}(0,1)\). ...
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...
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...
Solve capital selection and grid escape
Implement two functions for algorithmic practice: 1) MaximizeCapitalAfterProjects(k, initialCapital, requiredCapital, profit): You may pick at most k ...
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 ...