LLD - Design — Splitwise (Expense Sharing)Which of the following is the correct way to represent an exact split where user A pays 50 and user B pays 30?A{'A': 0.5, 'B': 0.3}B{'A': '50%', 'B': '30%'}C{'A': 'equal', 'B': 'equal'}D{'A': 50, 'B': 30}Check Answer
Step-by-Step SolutionSolution:Step 1: Understand exact split representationExact split uses fixed numeric amounts assigned to each participant.Step 2: Identify correct syntax{'A': 50, 'B': 30} uses numeric values without percent signs, matching exact amounts.Final Answer:{'A': 50, 'B': 30} -> Option DQuick Check:Exact split = fixed numeric amounts [OK]Quick Trick: Exact split uses numbers without percent signs [OK]Common Mistakes:Using percent signs for exact splitUsing strings instead of numbersConfusing with percentage split
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