Minimize Peak Daily Notional For An Ordered Rebalance Schedule

Last updated: November 29, 2026

Quick Overview

A list of rebalance trades must execute in the given order, each entirely within a single day, over at most D days. Split the list into at most D contiguous daily batches so the largest daily notional is as small as possible, and return that value.

Point72
Coding & Algorithms
Software Engineer
Point72
November 29, 2026
Software Engineer
Online Assessment
Coding & Algorithms
Medium

0

0

0 solved


A list of rebalance trades must execute in the given order, each entirely within a single day, over at most D days. Split the list into at most D contiguous daily batches so the largest daily notional is as small as possible, and return that value.

Portfolio rebalances at a fund like Point72 are often sequenced (sell before buy, hedge before unwind) and capped by daily risk or financing limits. The assessment checks whether the candidate recognizes binary search on the answer with a greedy feasibility check rather than attempting a DP.

What the Interviewer Expects
  • Identify the answer range as [max trade, total notional]
  • Write a greedy check that packs trades into days under a cap
  • Show the check is monotonic, so binary search applies
  • Run binary search on integers to the exact minimum
  • State O(n log S) time
Key Topics to Cover
binary search on answer
greedy feasibility
monotonicity
partitioning
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
  • Prove that the greedy packing is optimal for a fixed cap.
  • How would you return the actual day boundaries?
  • If trades can be split across days, what is the answer in closed form?
  • How would you handle a constraint that each day must contain at least one hedge trade?
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

Trades are in a fixed order with positive notionals (in, say, millions). Each day takes a contiguous block. Use at most D days. Minimize the maximum daily total. Trades are indivisible....

High-Level Design

The answer lies between the largest single trade (some day must hold it) and the total (one day holds everything). For a candidate cap, a greedy pass fills each day until the next trade would exceed t...


Submit Your Answer
Markdown supported

Related Questions