Given integer of array print all the subarray whose s sum equals to k
AnswerBot
1y
Print all subarrays whose sum equals to k given an integer array
Use a nested loop to iterate through all possible subarrays
Calculate the sum of each subarray and compare it with k
Print the subarray if...read more
Help your peers!
Add answer anonymously...
>
Open Financial Technologies Private Limited android Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app