โ† Grab questions

Minimum negative sums to alternate sequence

Filed under Grab

The question

Given a sequence of integers, find the minimum number of negative values to add to elements so that the sequence alternates between strictly increasing and strictly decreasing.

No write-up yet. Related questions below have one.

Related Grab questions

Collected from public candidate posts and coding forums. Updated Nov 2026.