New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Affirm
Coding Question
AI Insights
Quick Summary
Simulate financial transactions between multiple parties to compute their final account balances.
Start with given initial balances, apply each transaction by deducting from the sender and adding to the receiver.
Return the resulting balances as a list of integers sorted alphabetically by party name.
What This Tests
Efficient state tracking using associative arrays.
Sequential data processing and value accumulation.
String-based key management and alphabetical sorting.
Translating domain-specific rules into iterative logic.
Common Patterns
Hashing
Sorting
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Accepted
1.6k
/2.5k
Acceptance Rate
65.6%
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
transactions =
initialBalance =
Output
Expected