Two Sigma Interview Questions
Practice 39 real interview questions from Two Sigma. Covers Coding & Algorithms, Machine Learning, Statistics & Math, Behavioral & Leadership. For roles including Data Scientist, Software Engineer, Machine Learning Engineer.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Analyze Temperatures and Update Regression
You are given historical daily temperature data for New York City and several nearby towns. Each row contains a date, the NYC temperature, and the tem...
Why use the t-statistic?
In an A/B test or any mean-comparison setting, explain why the t-statistic is a useful measure. Your answer should cover: 1. What the t-statistic meas...
Explain why the t-statistic helps
Suppose you estimate an effect size \(\hat{\beta}\) in a regression model or an A/B test and compute a standard error \(SE(\hat{\beta})\). Explain why...
Design GenAI Fine-Tuning and Agent Tradeoffs
You are interviewing for a software engineering role involving generative AI infrastructure and quantitative applications. The interviewer wants to un...
How would you forecast bike demand?
You are given historical data from a shared city-bike system and asked to predict usage for a specific docking station during the next hour. Assume yo...
Evaluate Piecewise Linear Function
Given a list of 2D points [(x1, y1), (x2, y2), ..., (xn, yn)], where the points are ordered by strictly increasing x, connect each consecutive pair of...
Why Use a t-Statistic?
In the context of an A/B test or a linear regression, explain why the t-statistic is a useful measure for evaluating whether an estimated effect diffe...
Predict bike demand and avoid overfitting
You are given historical data for a city bike-sharing system. Available fields include station_id, hourly timestamp, number of bike pickups and return...
Merge Two Sorted Lists
You are given the heads of two singly linked lists, each already sorted in non-decreasing order. Merge them into one sorted linked list and return the...
Implement an In-Memory Database
Implement a simple in-memory relational database that processes a sequence of tokenized commands. You are given commands: List[List[str]], where each ...
Implement merge sort and largest 1-rectangle
The coding round included two algorithm questions: 1. Implement merge sort for an array of integers. Return the sorted array and explain its time and ...
Compute Piecewise Linear Interpolation
You are given an unsorted list of distinct 2D points (x_i, y_i). When the points are sorted by x_i, connecting adjacent points forms a polyline. Given...
Predict Bike Dock Demand
You are working on a docked bike-sharing system. Build a model that predicts how many bikes will be checked out from a specific dock in the next hour....
How detect duplicate card records?
You are given a dataset of credit card transaction records and suspect that some records are duplicates. Discuss: - What real-world situations could c...
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...
Return sorted values after quadratic transform
Problem You are given a sorted integer array nums (non-decreasing order) and integers a, b, c that define a quadratic function: \[ f(x) = ax^2 + bx +...
Merge two sorted lists
Given two sorted lists (arrays) of integers A and B in non-decreasing order, merge them into a single sorted list. Requirements - Output must be sorte...
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...
Add two integer strings using digit-adder
Coding Prompt You are given a helper function: - addDigits(a, b) -> (sumDigit, carry) - a and b are single decimal digits (characters '0'…'9' or int...
Merge two sorted linked lists
Given two singly linked lists sorted in ascending order, merge them into one singly linked list that is also sorted in ascending order. Requirements: ...