0
0
LLDsystem_design~5 mins

Split strategies (equal, exact, percentage) in LLD - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the 'equal split' strategy in payment splitting?
Equal split means dividing the total amount evenly among all participants, regardless of individual shares or preferences.
Click to reveal answer
beginner
Explain the 'exact split' strategy.
Exact split means each participant pays a specific, predefined amount. The sum of all exact amounts equals the total bill.
Click to reveal answer
beginner
How does the 'percentage split' strategy work?
Percentage split divides the total amount based on each participant's percentage share. The sum of all percentages must be 100%.
Click to reveal answer
intermediate
What is a key challenge when implementing 'exact split' in a system?
Ensuring the sum of all exact amounts matches the total bill exactly, handling rounding errors and validation.
Click to reveal answer
intermediate
Why might 'percentage split' be preferred over 'equal split'?
Percentage split allows flexibility for participants to pay according to their consumption or agreement, unlike equal split which assumes everyone pays the same.
Click to reveal answer
Which split strategy divides the total amount evenly among all participants?
AExact split
BPercentage split
CEqual split
DRandom split
In which split strategy must the sum of all participant amounts exactly match the total bill?
AExact split
BEqual split
CPercentage split
DProportional split
What must the total of all percentages be in a percentage split?
ALess than 100%
BMore than 100%
CAny value
DExactly 100%
Which split strategy offers the most flexibility for different payment shares?
AEqual split
BPercentage split
CFixed split
DExact split
What is a common issue when implementing exact split in software?
ARounding errors causing mismatch with total
BParticipants paying too little
CParticipants paying too much
DIgnoring participant preferences
Describe the differences between equal, exact, and percentage split strategies.
Think about how the total amount is divided among participants.
You got /4 concepts.
    What are key considerations when designing a system to support multiple split strategies?
    Consider what can go wrong and how to keep the system reliable.
    You got /4 concepts.