Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Subarray with given sum python

Input:
N = 10, S = 15
A[] = {1,2,3,4,5,6,7,8,9,10}
Output: 1 5
Explanation: The sum of elements 
from 1st position to 5th position
is 15.
Source by practice.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Subarray #sum #python
ADD COMMENT
Topic
Name
8+3 =