LLD - Design — Splitwise (Expense Sharing)Given a total amount of 120 and a percentage split {'A': 25, 'B': 75}, what is the amount user B should pay?A30B90C75D45Check Answer
Step-by-Step SolutionSolution:Step 1: Calculate user B's share using percentageUser B's percentage is 75%, so multiply 120 by 0.75 = 90.Step 2: Confirm calculation120 * 0.75 = 90, which is the amount user B pays.Final Answer:90 -> Option BQuick Check:Percentage split calculation = 90 [OK]Quick Trick: Multiply total by percentage/100 for amount [OK]Common Mistakes:Using percentage as amount directlyAdding percentages instead of multiplyingConfusing user A and B percentages
Master "Design — Splitwise (Expense Sharing)" in LLD9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More LLD Quizzes Advanced LLD Concepts - Why advanced concepts handle production systems - Quiz 8hard Advanced LLD Concepts - Event-driven design - Quiz 12easy Design — Chess Game - Piece movement rules (polymorphism) - Quiz 9hard Design — Food Delivery System - Restaurant, Menu, Order classes - Quiz 10hard Design — Hotel Booking System - Room type hierarchy - Quiz 9hard Design — Online Shopping Cart - Why e-commerce tests real-world complexity - Quiz 13medium Design — Online Shopping Cart - Notification on state change - Quiz 13medium Design — Online Shopping Cart - Pricing strategy (discounts, coupons) - Quiz 14medium Design — Online Shopping Cart - Pricing strategy (discounts, coupons) - Quiz 6medium Design — Splitwise (Expense Sharing) - Balance calculation algorithm - Quiz 9hard