Skip to content
RED SAGSkills
hard20 pts · first answer countsarraysprefix-sumsdeque

Shortest subarray with sum at least K, with negatives

With negative numbers allowed, which approach finds the shortest subarray with sum at least K in O(n)?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions