Two Sigma logo

Two Sigma Medium Interview Questions

3 medium-level practice questions for Two Sigma technical interviews

coding Medium Verified Question #1

1. Binary Step Reduction


Category: Algorithm coding problem
You are given a positive integer n. Your goal is to reduce it to zero using the fewest operations possible. In a single operation, you may add or...
Input: Integer(s)
Output: Integer
coding Medium Verified Question #2

2. Pythagorean Node Finder


Category: Tree coding problem
# Question You are given an undirected tree with n nodes labeled from 0 to n - 1. The tree is described by two integer arrays treeFrom and...
Input: Array
Output: Computed result
coding Medium Verified Question #3

3. Balanced Drainage Split


Category: Tree coding problem
# Question You are given a water drainage network shaped as a rooted tree with n nodes labeled from 0 to n - 1. Water flows from each node...
Input: Array
Output: Integer

No AI generated questions yet for Two Sigma.

Start practicing Two Sigma questions

Sign up for free to access walkthroughs, AI-generated questions, and more.

Get Started Free