Write a Programs to Generate Maximum non-empty subarray of an array
Given Array A of size N find those non-empty subarrays (sequence of consecutive elements)
Sample:
Array [ 1 ,1 ,3 ]
Output:
1
1
3
1 1
1 3
1 1 3
Solution:
Sample:
Array [ 1 ,1 ,3 ]
Output:
1
1
3
1 1
1 3
1 1 3
Solution:
Comments
Post a Comment