0 day streak

Two Sigma low-level design interview

Fintech Global Machine coding / LLD

You design and build a small working system in code: classes, interfaces, data structures and how they change when a new requirement arrives. In India, the 90-minute machine coding round (Flipkart, PhonePe, Swiggy, Razorpay) is often the first filter for SDE 2.

0%ready
ProgressProblem as candidates report itNext step
Connect-7 game (LLD)Being added: class diagram, Java code and follow-ups Coming soon
In-memory database (LLD)Class diagram, Java code and follow-ups Start
Thread-safe LRU cache with TTL eviction (LLD)Class diagram, Java code and follow-ups Start
Price-time priority order matching engine (LLD)Class diagram, Java code and follow-ups Start
Hash map with separate chaining and resizing (LLD)Class diagram, Java code and follow-ups Start
Weighted random index picker class (LLD)Being added: class diagram, Java code and follow-ups Coming soon
Binary tree class with deliberately broken methods to fix (machine coding)Being added: class diagram, Java code and follow-ups Coming soon
Log stream parser and merger (machine coding)Being added: class diagram, Java code and follow-ups Coming soon
Thread-safe random number generator that never repeats (LLD)Covered by the lesson: Thread safety: locks and atomics Learn it
Debug a filtering iterator and a concurrent tree map (machine coding)Covered by the lesson: Iterator pattern Learn it
Dependency-aware task scheduler on a thread pool without deadlock (LLD)Class diagram, Java code and follow-ups Start

How Two Sigma runs it

SDE 1, SDE 2, SDE 3, staff · 60 min. Build a small working system from a blank file, such as a game or an in-memory store, then absorb a new requirement.

  • Build five classic systems end to end under a 90-minute timer: parking lot, splitwise, snake and ladder, rate limiter, in-memory key-value store.
  • Separate models, services and storage; keep the main method thin.
  • Learn when to use strategy, factory and observer patterns, and when not to.
  • Handle invalid input explicitly: graders check validation.

The low-level design round, scored by level · New to LLD? Start with OOP, SOLID and the design patterns, then the machine coding problems.

Questions people ask

Does Two Sigma have a low-level design or machine coding round?

Yes, at SDE 1, SDE 2, Senior Software Engineer (SDE 3), Staff Software Engineer. You design and build a small working system in code: classes, interfaces, data structures and how they change when a new requirement arrives. In India, the 90-minute machine coding round (Flipkart, PhonePe, Swiggy, Razorpay) is often the first filter for SDE 2.