Longest Subsequence Under an Index-Weighted Sum

Company: D. E. Shaw

Difficulty: medium