Minimum Memory After Removing a Contiguous Segment

Asked at Amazon · Coding Questions · Difficulty: Easy

Delete exactly `m` contiguous processes from `processes` and return the minimum possible sum of the remaining memory usage.

Loading the problem…