Skip to main content

โฌ Min

Returns the minimum value in the array.

๐Ÿ“ Syntaxโ€‹

TypeOfArray minimum()

๐Ÿ”ฎ Exampleโ€‹

DataTomeAnalysis<int, long int> intAverage(10);

for (int i = 1; i < 5; i++) {
intAverage.push(i);
}

intAverage.minimum(); // Will return 1

โฑ Complexityโ€‹

Linear (O(n)) in the point count.