Skip to content

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

License

Notifications You must be signed in to change notification settings

yashvardhan-rustedlegend/Find-Subarray-with-given-Sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages