Bird
0
0

A split strategy is defined as {'A': 50, 'B': 60} with a total amount of 100. What is the error in this setup?

medium📝 Analysis Q6 of 15
LLD - Design — Splitwise (Expense Sharing)
A split strategy is defined as {'A': 50, 'B': 60} with a total amount of 100. What is the error in this setup?
ASplit values are equal but amounts differ
BSplit values are percentages but sum to 110%
CSum of splits exceeds total amount
DNo error, setup is correct
Step-by-Step Solution
Solution:
  1. Step 1: Calculate sum of split values

    Sum is 50 + 60 = 110, which is greater than total 100.
  2. Step 2: Identify inconsistency

    Exact split amounts cannot exceed total amount.
  3. Final Answer:

    Sum of splits exceeds total amount -> Option C
  4. Quick Check:

    Sum of splits must not exceed total [OK]
Quick Trick: Sum of exact splits must equal total amount [OK]
Common Mistakes:
  • Ignoring sum check
  • Assuming percentages without % sign
  • Confusing equal and exact splits

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes