logo
Interview
    Interview Guide
    Coding Problems List
Sponsored: Coursera
Problems

Minimum Subarray

Problem

Given an array of integers, find the subarray with smallest sum.

Return the sum of the subarray.

Example

For [1, -1, -2, 1], return -3

Note

The subarray should contain at least one integer.

Online Judge