ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 20m 11s17 days 22 hours 20 minutes 11 seconds.
ā” Build the skills to land top-paying quant jobs. Offer ends in 17d 22h 20m 11s17 days 22 hours 20 minutes 11 seconds.

Sign in to watch this lesson
Advanced - Dynamic Programming Ā· 4:55
When the best answer for a row is built from the best answers for its contiguous pieces, the state is a segment [i, j] and the table fills in order of increasing length. We solve a two-player take-from-either-end game by storing the mover's advantage on each segment, read the optimal moves off the triangle, and then turn to the split form of interval DP, merging blocks at the cheapest cut with prefix sums, and see when its cubic cost is too much.