Category Archives: Arrays

Sum of all Subarrays

Given an integer array ‘arr[]’ of size n, find sum of all sub-arrays of given array. Examples: Input : arr[] = {1, 2, 3} Output… Read More »