4 ms·You could keep it linear by first going through the list to find the max, then scaling down.by gweinberg 13y agoYou could keep it linear by first going through the list to find the max, then scaling down.