Bird
0
0

If a total amount is 200 and the exact split is {'A': 80, 'B': 120}, what is the amount user A pays?

medium📝 Analysis Q5 of 15
LLD - Design — Splitwise (Expense Sharing)
If a total amount is 200 and the exact split is {'A': 80, 'B': 120}, what is the amount user A pays?
A80
B120
C100
D200
Step-by-Step Solution
Solution:
  1. Step 1: Identify user A's exact amount

    Exact split assigns user A the fixed amount 80.
  2. Step 2: Confirm total matches sum

    Sum 80 + 120 = 200, so user A pays 80.
  3. Final Answer:

    80 -> Option A
  4. Quick Check:

    Exact split amount = 80 [OK]
Quick Trick: Exact split amount is fixed as given [OK]
Common Mistakes:
  • Mixing amounts between users
  • Calculating percentage instead of exact
  • Assuming equal split

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes