Two Sigma Coding Interview Questions: 16 Tagged Problems
16 coding problems tagged Two Sigma — 3 easy · 8 medium · 5 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 16
- By difficulty: 3 easy · 8 medium · 5 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
16 problems the CodeKairo catalogue tags as commonly asked in Two Sigma's coding rounds — 3 easy, 8 medium and 5 hard — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (9), Strings (6) and Dynamic Programming (6). Tagged for Two Sigma and no other company: Number of Provinces. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Two Sigma, which CodeKairo is not affiliated with.
Two Sigma study plan by topic
All 16 problems tagged Two Sigma over 2 weeks, about 9 h 50 min of solving, grouped by technique in the order they build on each other — Two Pointers, Stack, Queue and Simulation and 7 more.
Week 1: Two Pointers, Stack, Queue +6
12 problems on Two Pointers, Stack, Queue, Simulation, Intervals, Greedy, Recursion, Trie and Topological Sort, easiest first within each topic.
- Intersection of Two Arrays Easy
- Longest String Chain Medium
- Last Substring in Lexicographical Order Hard
- Valid Parentheses Easy
- Maximum Sum Circular Subarray Medium
- Game of Life Medium
- Multiply Strings Medium
- Meeting Rooms II Medium
- Wildcard Matching Hard
- Power of Four Easy
- Word Search II Hard
- Parallel Courses III Hard
Week 2: Union Find, Dynamic Programming
4 problems on Union Find and Dynamic Programming, easiest first within each topic.
All problems tagged Two Sigma
Easy (3)
- Power of Four Math, Bit Manipulation, Recursion
- Intersection of Two Arrays Array, Hash Table, Two Pointers
- Valid Parentheses String, Stack
Medium (8)
- Maximum Subarray Sum with One Deletion Array, Dynamic Programming
- Maximum Sum Circular Subarray Array, Divide and Conquer, Dynamic Programming
- Longest String Chain Array, Hash Table, Two Pointers
- Game of Life Array, Matrix, Simulation
- Number of Provinces Graph, Depth-First Search, Union Find
- Meeting Rooms II Array, Sorting, Heap
- Number of Islands Array, Matrix, Depth-First Search
- Multiply Strings String, Math, Simulation
Hard (5)
- Word Search II String, Backtracking, Trie
- Parallel Courses III Array, Graph, Topological Sort
- Last Substring in Lexicographical Order String, Two Pointers
- Wildcard Matching String, Dynamic Programming, Greedy
- Best Time to Buy and Sell Stock III Array, Dynamic Programming
Topics Two Sigma asks most
- Arrays 9 problems
- Strings 6 problems
- Dynamic Programming 6 problems
- Two Pointers 3 problems
- Matrix 3 problems
- Hash Table 2 problems
- Math 2 problems
- Sorting 2 problems
- Simulation 2 problems
- Graph 2 problems
- Depth-First Search 2 problems
- Union Find 2 problems