Subarray With Given Sum Problem Statement Given an array ARR of N integers and an integer S, determine if there exists a contiguous subarray within the array with a sum equal to S. If such a subarray exists, return the start and end indices (0-based index) of the subarray. If no such subarray is found, return [-1, -1].
santanu13/Contiguous-Array-Sum
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|