0 day streak

Two Sigma coding interview questions

Fintech Global Machine coding / LLD

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Two City SchedulingGreedy Medium Arrays & Hashing Bloomberg, Plaid, Klarna +4 Solve
Number of Distinct IslandsMatrix Graphs Medium Graphs Snap, TikTok (ByteDance), Coupang +5 Solve
Merge Two Sorted ListsDummy Node Pattern Easy Linked List Google, Amazon, Microsoft +60 Solve
Add StringsRight to Left Traversal Easy Arrays & Hashing Microsoft, Airbnb, Wayfair +7 Solve
Sort Transformed ArrayTwo Pointer Medium Arrays & Hashing LinkedIn, Waymo, Zomato Solve
Best Time to Buy and Sell StockState Machine DP - Stock Problems Easy Dynamic Programming Amazon, Microsoft, Apple +101 Solve
Random Pick with WeightBasics Medium Binary Search Google, Amazon, Meta +18 Solve
Number of ProvincesConnected Components Medium Graphs Google, Uber, Pinterest +6 Solve
Longest String Chain1D DP Medium Dynamic Programming Agoda, Moloco, Wix +5 Solve
Multiply StringsRight to Left Traversal Medium Arrays & Hashing Pinterest, X (Twitter), Zillow +9 Solve
Wildcard MatchingStrings Hard Dynamic Programming Snap, Instacart, TikTok (ByteDance) +11 Solve
Game of LifeIn-place Transformations Medium Arrays & Hashing Snap, Reddit, Dropbox +6 Solve
Intersection of Two ArraysTwo Pointer Easy Arrays & Hashing Meta, Lyft, MongoDB +13 Solve
Maximum Sum Circular SubarrayKadane's Algorithm Medium Arrays & Hashing Activision Blizzard, Klarna, Charles Schwab +7 Solve
Parallel Courses IIITopological Sort Hard Graphs Netflix, Stripe, Snowflake +4 Solve
Word Search IITrie + Backtracking Hard Tries Google, Amazon, Uber +12 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Design Memory AllocatorSimulation Medium Design Data Structures Nvidia, Rubrik, Tesla +7 Solve
Valid ParenthesesStack Basics Easy Stack Google, Amazon, Microsoft +119 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
House Robber IIIPostorder + Multiple Return Values Medium Trees & BST Amazon, Airbnb, DocuSign +3 Solve
Number of Orders in the BacklogAdvanced Medium Heaps Robinhood, Citadel, Jane Street Solve
Regular Expression MatchingStrings Hard Dynamic Programming Microsoft, Airbnb, Snowflake +17 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Minimum Window SubstringSliding Window · Hash Map Hard Arrays & Hashing Google, Amazon, Microsoft +37 Solve
Design HashMapPre-processing + tradeoffs Easy Design Data Structures Apple, Nvidia, Snowflake +25 Solve
Sliding Window MedianAdvanced Hard Heaps Microsoft, Meta, Spotify +5 Solve
Also reported, being added to AlgoRung (18)

Maximum set of pairwise strangers in an acquaintance tree · Allocate IPO shares among bidders · Split a weighted tree into balanced parts · Next smallest palindrome greater than a number · Evaluate a piecewise linear function with interpolation · Maximum Subarray Sum with One Deletion · Power of Four · Minimum Space Wasted From Packaging · IPO · Maximum currency conversion rate across exchange pairs · Limit order matching with price-time priority · Huffman-style encode and decode with a frequency tree · Encode every root-to-leaf path of a binary tree as a bit string · Fewest steps out of a grid maze with periodic walls and teleporters · All subsequences after deleting one character · Autoscale a server fleet from throughput readings · Parse and merge timestamped log streams · Rebuild an order book from a feed, including cancels

Questions people ask

What coding questions does Two Sigma ask most?

Two City Scheduling, Number of Distinct Islands, Merge Two Sorted Lists, Add Strings, Sort Transformed Array, Best Time to Buy and Sell Stock, Random Pick with Weight, Number of Provinces.

Which topics come up in Two Sigma coding rounds?

dynamic programming, graphs, strings, trees, heaps, design data structure.

How hard are Two Sigma coding questions?

Of the reported questions, 6 are easy, 15 medium and 7 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.