Two Sigma Software Engineer Coding & Algorithms Interview Questions

Practice 12 real Coding & Algorithms interview questions for Software Engineer roles at Two Sigma.

12 Questions 1 Company07.31.2026
Showing 12 results
Role
Two Sigma logo
Two Sigma
Medium
Software Engineer

Match Limit Orders with Price-Time Priority

Implement an in-memory limit-order matcher that processes orders in arrival order and returns both the executed trades and the final resting order boo...

Coding & Algorithms
11
0
77 people solved
Jul 31, 2026
Two Sigma logo
Two Sigma
Medium
Software EngineerNew Grad

Allocate IPO Shares and Split a Weighted Tree

Two Allocation and Tree Problems Implement both independent parts. Part A - IPO Share Allocation Each bid is [user_id, requested_shares, price, timest...

Coding & Algorithms
4
0
64 people solved
Jun 28, 2026
Two Sigma logo
Two Sigma
Hard
Software Engineer

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

Coding & Algorithms
6
0
54 people solved
Apr 2, 2026
Two Sigma logo
Two Sigma
Medium
Software Engineer Locked

Implement Price-Time Order Matching

This question evaluates understanding of limit-order book mechanics, priority-based matching, stateful stream processing, and data-structure managemen...

Coding & Algorithms
6
0
36 people solved
May 9, 2026
Two Sigma logo
Two Sigma
Medium
Software Engineer

Implement a Hash Map with Separate Chaining and Resizing

Implement a hash map data structure from scratch, without using any built-in hash table types from your language's standard library (no dict, HashMap,...

Coding & Algorithms
1
0
10 people solved
Aug 26, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Maximize Capital by Completing at Most k Projects

A startup has an initial amount of capital w and is choosing which projects to take on before an important funding deadline. There are n candidate pro...

Coding & Algorithms
1
0
11 people solved
Aug 26, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Maximum Group of Pairwise Strangers in an Acquaintance Tree

You are given a social network of n people, labeled 0 through n - 1. For some pairs of people, it is known that the two people in the pair know each o...

Coding & Algorithms
0
0
6 people solved
Jul 23, 2025
Two Sigma logo
Two Sigma
Hard
Software Engineer

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

Coding & Algorithms
8
0
132 people solved
Dec 15, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

All Subsequences After Deleting One Character

You are given a string s of length n consisting of lowercase English letters. Consider every string that can be obtained by deleting exactly one chara...

Coding & Algorithms
0
0
7 people solved
Sep 19, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Autoscale a Server Fleet from Throughput Readings

You run a service on a fleet of identical servers behind a load balancer. Each server can handle at most limit units of throughput. A monitoring syste...

Coding & Algorithms
0
0
5 people solved
Sep 19, 2025
Two Sigma logo
Two Sigma
Medium
Software Engineer

Solve capital selection and grid escape

Solve capital selection and grid escape Implement two functions for algorithmic practice: 1) MaximizeCapitalAfterProjects(k, initialCapital, requiredC...

Coding & Algorithms
8
0
117 people solved
Aug 9, 2025
Two Sigma logo
Two Sigma
Hard
Software Engineer

Compute maximum currency exchange rate

Compute maximum currency exchange rate You are given a set of currencies and the direct exchange rates between some pairs of them. Each direct exchang...

Coding & Algorithms
17
0
147 people solved
Jul 20, 2025

Explore more Two Sigma Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Browse all