Problem

Given an unsorted array of integers A and a number sum, find a continuous subarray that adds up to sum

Brute force approach


Window sliding approach