Question: i wantI want here code for this question in cpp Given an array containing N integers and an integer K . , Your task is

i wantI want here code for this question in cpp
Given an array containing N integers and an integer K., Your task is to find the length of the longes Sub-Array with the sum of the elements equal to the given value K.
Example 1:
Input :
AD={10,5,2,7,1,9}
K=15
Input :
Output : 4
Explanation:
The sub-array is {5,2,7,1}.
Example 2
 i wantI want here code for this question in cpp Given

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!