Input : arr : [ 1, 4, 0, 0, 2, 6, 3 ] & sum = 6 Output : Sub-array with sum greater than 6 will have a size of 2 Elements Explanation : For the given array. The sub-array from index 4 to 5 will give a ...
Equilibrium index of an array Here we will learn about Python program to find Equilibrium index of an array. Equilibrium index of an array is an index such that the sum of elements at lower indexes is ...