Bird
0
0

In a percentage split system, if the sum of percentages provided is 110%, what is the main issue and how should it be fixed?

medium📝 Analysis Q14 of 15
LLD - Design — Splitwise (Expense Sharing)
In a percentage split system, if the sum of percentages provided is 110%, what is the main issue and how should it be fixed?
AThe sum is valid, no fix needed
BThe sum should be exactly 0%, reset all percentages
CThe sum is less than 100%, add missing percentage
DThe sum exceeds 100%, fix by normalizing percentages to sum to 100%
Step-by-Step Solution
Solution:
  1. Step 1: Identify the problem with sum of percentages

    Percentages must sum to 100% (or 1 in decimal) to correctly split amounts.
  2. Step 2: Determine the fix

    If sum is 110%, it exceeds total amount. Normalize by scaling percentages so they sum to 100%.
  3. Final Answer:

    The sum exceeds 100%, fix by normalizing percentages to sum to 100% -> Option D
  4. Quick Check:

    Sum > 100% requires normalization [OK]
Quick Trick: Percentages must sum to 100%, else normalize [OK]
Common Mistakes:
  • Ignoring sum validation
  • Assuming sum can be more than 100%
  • Trying to add missing percentage when sum is too high

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes