Maximize Memory Points by Read Order
Asked at Amazon · Coding Questions · Difficulty: Medium
Reading chapters in some order, the `j`-th chapter read (0-indexed) gains the sum of the memory values of the first `j+1` chapters read. All chapters are read. Maximize the total memory points.
Loading the problem…