Reconcile General Ledger Cash Entries Against a Bank Statement
Last updated: November 29, 2026
Quick Overview
Given general ledger cash entries and bank statement lines, each a (reference, amount in cents) pair, report which references match, which match on reference but differ in amount, which appear on only one side, and which references are duplicated.
Deloitte
November 29, 20260
0
0 solved
Given general ledger cash entries and bank statement lines, each a (reference, amount in cents) pair, report which references match, which match on reference but differ in amount, which appear on only one side, and which references are duplicated.
Reconciliation is the bread and butter of audit and finance transformation work at Deloitte, so it makes a natural entry level online assessment task for analyst developer roles. The grader checks that you choose hash maps over nested loops, keep the categories mutually exclusive, and think about money as integer cents.
What the Interviewer Expects
- Uses dictionaries keyed by reference for O(n + m) matching
- Keeps amounts as integer cents to avoid float comparison bugs
- Produces mutually exclusive, deterministic (sorted) output buckets
- Detects duplicate references instead of silently overwriting them
- Explains what an auditor would do with each bucket
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
- Bank lines often lack the GL reference. How would you match on amount plus a date tolerance instead?
- How would you handle one bank deposit that settles three GL entries?
- The files have 50 million rows each. What changes?
- How do you make the run reproducible for audit evidence?
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: gl and bank, lists of (ref, amount_cents). Output buckets:
- matched: ref on both sides, same amount
- amount_mismatch: ref on both sides, amounts differ (report both)
- **only_i...
High-Level Design
Load each side into a dictionary ref -> amount, recording any ref seen twice. Then a single pass over the GL map classifies every shared ref as matched or mismatched, and two set differences give th...