Katkat
Online Assessment

Piecewise Interpolation, Temperature Prediction, and Streaming Linear Regression on the OA

Two SigmaData Scientist · Online Assessment · Apr 2026

This Two Sigma research OA is also an old question that's been floating around on the forum. Question 1: You're given a bunch of discrete points that connect into a polyline. Now you're given an x, and you need to compute the corresponding y. If x falls between two points, do linear interpolation; if it falls outside the range, extend the line segments on either end to compute it. The question ma…

Shared by a candidate · reported Apr 2026. Interview formats change; use it as a guide, not a script.