Bird
0
0

Which of the following is the correct way to represent an exact split where user A pays 50 and user B pays 30?

easy📝 Conceptual Q3 of 15
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}
Step-by-Step Solution
Solution:
  1. Step 1: Understand exact split representation

    Exact split uses fixed numeric amounts assigned to each participant.
  2. Step 2: Identify correct syntax

    {'A': 50, 'B': 30} uses numeric values without percent signs, matching exact amounts.
  3. Final Answer:

    {'A': 50, 'B': 30} -> Option D
  4. Quick Check:

    Exact split = fixed numeric amounts [OK]
Quick Trick: Exact split uses numbers without percent signs [OK]
Common Mistakes:
  • Using percent signs for exact split
  • Using strings instead of numbers
  • Confusing with percentage split

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes