Reconcile Bank Feed Transactions Against QuickBooks Ledger Entries
Last updated: November 29, 2026
Quick Overview
Given bank feed transactions and ledger entries, each with an id, a day number and an amount in cents, match each bank transaction to an unmatched ledger entry with the same amount whose date is within k days, and report what is left unmatched on both sides.
Intuit
November 29, 20260
0
0 solved
Given bank feed transactions and ledger entries, each with an id, a day number and an amount in cents, match each bank transaction to an unmatched ledger entry with the same amount whose date is within k days, and report what is left unmatched on both sides.
QuickBooks Online pulls bank feeds and asks the small business owner to confirm matches against invoices and bills they already entered, so reconciliation logic is a natural coding screen at Intuit. The interviewer checks whether you group by amount with a hash map instead of comparing all pairs, and whether you reason about why a greedy match is safe.
What the Interviewer Expects
- Clarify amount units (integer cents) and whether one bank row can match only one ledger row
- Group ledger entries by amount in a hash map instead of an O(n*m) scan
- Process both sides in date order and justify the greedy earliest-match choice
- Return unmatched rows from both sides, including ledger rows expired out of the window
- Discuss ties and deterministic ordering so results are reproducible
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- How would you support one bank deposit matching several invoices (a batch deposit)?
- What changes if amounts can differ by a small fee, for example a card processor taking 2.9%?
- How would you rank candidate matches when several ledger entries qualify and you want to show the user a suggestion?
- How would you run this incrementally as new bank rows arrive every day?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Inputs: bank and ledger, lists of (id, day, amount_cents). A bank row matches a ledger row when amounts are equal and |bank_day - ledger_day| <= k. Each row is used at most once. Output the ma...
High-Level Design
Bucket ledger entries by amount into a deque sorted by date. Walk bank rows in date order. For each one, look only at the deque for its amount. Any ledger entry older than day - k can never match th...