Maximize Alpha From Non-Overlapping Signal Trades With Cooldown

Last updated: November 29, 2026

Quick Overview

Each candidate trade has an entry day, exit day and expected alpha. You can hold one trade at a time, and after exiting on day e the next trade must enter on day e + c + 1 or later. Return the maximum total alpha.

Point72
Coding & Algorithms
Quantitative Researcher
Point72
November 29, 2026
Quantitative Researcher
Technical Screen
Coding & Algorithms
Medium

0

0

0 solved


Each candidate trade has an entry day, exit day and expected alpha. You can hold one trade at a time, and after exiting on day e the next trade must enter on day e + c + 1 or later. Return the maximum total alpha.

Quant researchers at Point72 and Cubist often code in screens, and this one frames weighted interval scheduling as turning a signal into a capacity-constrained trade list. The interviewer checks that the candidate sees the 1D DP over trades sorted by exit, uses binary search for the last compatible trade, and handles the cooldown offset precisely.

What the Interviewer Expects
  • Sort trades by exit day and define dp[i] as best alpha using the first i trades
  • Choose between skipping trade i and taking it plus the best compatible prefix
  • Find the compatible prefix with binary search on exit days shifted by the cooldown
  • Ignore or allow negative-alpha trades correctly (they are never taken)
  • Reach O(n log n) and explain why greedy by alpha fails
Key Topics to Cover
1D dynamic programming
weighted interval scheduling
binary search
sorting
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 reconstruct which trades were chosen?
  • What if you may hold up to two trades at once?
  • Expected alpha is noisy: how would you penalize turnover or add transaction costs?
  • Trades arrive online and you must decide immediately: what changes?
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 occupy inclusive day ranges [entry, exit]. Only one position at a time, and a cooldown of c days is required after an exit. Maximize the sum of expected alpha. Negative-alpha trades are allowed...

High-Level Design

Weighted interval scheduling. Sort by exit day. Let dp[i] be the best total using only the first i trades in that order. For trade i, either skip it (dp[i-1]) or take it and add dp[j], where j counts ...


Submit Your Answer
Markdown supported

Related Questions