Smallest Subarray

0

0 votes
Medium
Problem

Given an array of integers and a number x , find the smallest subarray(minimum number of elements)
with sum greater than the given value x.

Input :  

Line 1 : Size of array
Line 2 : Elements seperated by space
Line 3 : x

Sample Input :

6
1 3 5 6 4 3
9

Output : 

5 6

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?