Enumerate Hedge Baskets Whose Combined Beta Lands In Range

Last updated: November 29, 2026

Quick Overview

Given candidate hedge instruments with integer betas (in hundredths), list every basket of at most m distinct instruments whose total beta falls within [lo, hi], each basket sorted by name and the list sorted.

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

0

0

0 solved


Given candidate hedge instruments with integer betas (in hundredths), list every basket of at most m distinct instruments whose total beta falls within [lo, hi], each basket sorted by name and the list sorted.

Point72 PMs hedge market and sector exposure with ETFs and futures, and tooling that proposes small hedge baskets is a realistic research utility. The interviewer is checking backtracking structure, duplicate avoidance through index ordering, and pruning that actually holds when betas can be negative.

What the Interviewer Expects
  • Use backtracking over sorted candidates with a start index to avoid duplicate baskets
  • Track running beta and basket size
  • Record a basket whenever its sum is in range, then keep extending
  • Prune safely, noting that sum-based pruning needs non-negative values or bound tracking
  • Discuss output size as the real complexity driver
Key Topics to Cover
backtracking
combinations
pruning
subset sum
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
  • Some hedges have negative beta (inverse ETFs or VIX futures): how does your pruning change?
  • How would you rank baskets by cost of carry or tracking error instead of listing all?
  • With 200 instruments and m = 4, the output explodes: what would you do instead?
  • How would you allow fractional weights rather than unit weights?
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

Each instrument is used at most once with unit weight. Betas are integers in hundredths to avoid float comparison issues. A basket qualifies when 1 to m instruments sum to a beta in [lo, hi]. Output i...

High-Level Design

Backtracking over instruments sorted by beta. A start index ensures each combination is generated once. At every node, record the basket if its total is in range, then try adding each later instrument...


Submit Your Answer
Markdown supported