Reconcile Trade Blotter Positions Against Custodian Holdings

Last updated: November 29, 2026

Quick Overview

Given a day's trade blotter of (account, symbol, signed quantity) rows plus starting positions, and the custodian's end-of-day holdings, return every (account, symbol) where our computed position disagrees with the custodian, sorted by account then symbol.

Point72
Coding & Algorithms
Software Engineer
Point72
November 29, 2026
Software Engineer
Phone Screen
Coding & Algorithms
Easy

0

0

0 solved


Given a day's trade blotter of (account, symbol, signed quantity) rows plus starting positions, and the custodian's end-of-day holdings, return every (account, symbol) where our computed position disagrees with the custodian, sorted by account then symbol.

Point72 runs many investment teams whose books must tie out with prime brokers and custodians every night, so a position break is a real operational risk. This phone-screen warm-up checks whether a candidate reaches for hashing cleanly, handles symbols that appear on only one side, and produces deterministic output.

What the Interviewer Expects
  • Aggregate signed quantities per (account, symbol) with a dictionary in one pass
  • Compare against custodian holdings including keys present on only one side
  • Treat a missing key as zero rather than skipping it
  • Suppress zero-versus-missing so flat positions are not reported as breaks
  • Return output in a stable sorted order
  • State O(n + m) time and memory
Key Topics to Cover
hash maps
reconciliation
set union of keys
sorting output
data hygiene
How to Approach This
  1. Clarify input constraints and edge cases before writing code.
  2. Walk through your approach verbally and confirm with the interviewer before coding.
  3. Start with a brute force solution, then optimize. Mention time and space complexity.
  4. Test your solution with examples, including edge cases like empty input or duplicates.
  5. Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
  • How would you allow a tolerance for fractional shares or rounding in bond quantities?
  • Trades arrive late after the custodian snapshot: how would you tag breaks that are explained by timing?
  • The blotter has 50 million rows and does not fit in memory: what changes?
  • How would you report breaks in notional terms so operations can triage the largest first?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice DSA Problems
Sample Answer
Requirements

Inputs are starting positions keyed by (account, symbol), the day's trades with signed quantity (buys positive, sells negative), and the custodian's end-of-day holdings. A break is any key where our c...

High-Level Design

Build our end-of-day book with a dictionary: seed with starting positions, then add each trade's signed quantity. Then iterate over the union of keys from both books, compare with a default of zero, a...


Submit Your Answer
Markdown supported