News

and use the for loop for checking each element in the array is maximum than 0th index or not, if any of the element maximum than 0th index element then max element is that element. 2. we have to find ...
Suppose there are N elements in the array, the min value is min and the max value is max. Then the maximum gap will be no smaller than ceiling[(max - min ) / (N - 1)]. Let gap = ceiling[(max - min ) / ...