import * as simplestatistics from "https://deno.land/x/simplestatistics@v7.7.6/src/max_sorted.js"; FunctionsfdefaultThe maximum is the highest number in the array. With a sorted array, the last element in the array is always the largest, so this calculation can be done in one step, or constant time.