Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 323 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 323 Bytes

Find-Subarray-with-given-Sum

Given an unsorted array of nonnegative integers, find a continuous sub-array which adds to a given number. Examples :

Input: arr[] = {1, 4, 20, 3, 10, 5}, sum = 33 Ouptut: Sum found between indexes 2 and 4 Sum of elements between indices 2 and 4 is 20 + 3 + 10 = 33

Difficulty Level-Medium