Bird
Raised Fist0

Given a total amount of 100 and a split strategy: {'A': 30, 'B': 70} as exact amounts, what is the amount assigned to user B?

medium📝 Analysis Q13 of Q15
LLD - Design — Splitwise (Expense Sharing)
Given a total amount of 100 and a split strategy: {'A': 30, 'B': 70} as exact amounts, what is the amount assigned to user B?
A70
B100
C30
D0
Step-by-Step Solution
Solution:
  1. Step 1: Identify the split type and amounts

    The split is exact, so amounts are assigned directly as given.
  2. Step 2: Find user B's assigned amount

    User B is assigned 70 as per the exact split dictionary.
  3. Final Answer:

    70 -> Option A
  4. Quick Check:

    Exact split assigns given amounts = 70 [OK]
Quick Trick: Exact split means use given amounts directly [OK]
Common Mistakes:
MISTAKES
  • Adding amounts instead of reading assigned value
  • Confusing exact with percentage split
  • Assuming equal split when exact is given

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes