Machine-coding case studies

Design Splitwise

Group expense sharing: add an expense, split it (equally / exact / by %), and track who owes whom, then simplify the debts. An animated lesson where the diagram draws itself as the design grows.

  • Lesson 3 of 6
  • Animated diagrams

Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

6 lessons, each with diagrams that draw themselves.

What you will learn

  • 1. Requirements
  • 2. The classes
  • 3. The key pattern: Strategy for splitting
  • 4. Tracking balances
  • 5. The hard bonus: simplify debts

More low-level design

Watch Design Splitwise take shape

Sign in and the lesson opens with its diagram ready to play, and the rest of Machine-coding case studies beside it.

DSA comes with the all labs plan and every ChaiCode batch.