Two Sigma Data Scientist Interview Questions

Practice the exact questions companies are asking right now.

48 Questions 1 Company04.21.2026
Showing 8 results
Role
Two Sigma logo
Two Sigma
Easy
Data Scientist

Fill Missing Time-Series Values with Linear Interpolation (Duplicate Timestamps Allowed)

Fill Missing Time-Series Values with Linear Interpolation (Duplicate Timestamps Allowed) You are given readings from a single sensor as a list of reco...

Coding & Algorithms
0
0
5 people solved
May 13, 2025
Two Sigma logo
Two Sigma
Medium
Data Scientist Locked

Evaluate a Piecewise Linear Function

This question evaluates understanding of linear interpolation, numerical reasoning with ordered 2D points, and input validation when computing values ...

Coding & Algorithms
4
0
38 people solved
Mar 3, 2026
Two Sigma logo
Two Sigma
Medium
Data Scientist

Evaluate piecewise linear function at x

You are given a polyline defined by n 2D points \((x_i, y_i)\). Connecting consecutive points with straight line segments forms a piecewise linear fun...

Coding & Algorithms
12
0
106 people solved
Mar 1, 2026
Two Sigma logo
Two Sigma
Hard
Data Scientist

Assign 2n Workers to Two Tasks to Minimize Total Time

You manage 2n workers and two tasks, A and B. Every worker must be assigned to exactly one task, and each task must be staffed by exactly n workers. W...

Coding & Algorithms
0
0
7 people solved
Nov 28, 2025
Two Sigma logo
Two Sigma
Hard
Data ScientistIntern

Implement Univariate Linear Regression with Ordinary Least Squares

Implement univariate (simple) linear regression fitted in batch with the ordinary least squares (OLS) closed-form solution. You must implement the for...

Coding & Algorithms
0
0
4 people solved
Nov 15, 2025
Two Sigma logo
Two Sigma
Hard
Data ScientistIntern

Maximum-Product Simple Path in a Complete Directed Graph

You are given a complete directed graph with n nodes labeled 0 through n - 1. For every ordered pair of distinct nodes (i, j), there is a directed edg...

Coding & Algorithms
0
0
5 people solved
Nov 15, 2025
Two Sigma logo
Two Sigma
Hard
Data ScientistIntern

Count Distinct Island Shapes in a Binary Grid

You are given an m x n binary grid grid, where grid[i][j] is either 0 (water) or 1 (land). An island is a maximal group of 1-cells connected 4-directi...

Coding & Algorithms
0
0
7 people solved
Nov 15, 2025
Two Sigma logo
Two Sigma
Medium
Data Scientist

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

Data Manipulation (SQL/Python)
0
0
12 people solved
Oct 13, 2025

Explore more Two Sigma Data Scientist interview questions

Real questions from candidate reports, grouped by topic, role and company.

By category
Other roles at Two Sigma
Data Scientist questions at other companies
Browse all