A one-pass maximum scan compares each new item with the best so far and replaces the best when the new item wins. On a list of twelve items it performs 11 comparisons. In the worst case it also performs one replacement for every item after the first. Give the worst-case step count, counting one comparison or one replacement as a step.
Worked solution
For items the scan compares each item with the best so far, which is comparisons. In the worst case every comparison finds a larger item, so the scan also performs 11 replacements. The total is steps, which is . The worst case is a list in increasing order: each new item beats the previous best. On a decreasing list the scan still performs 11 comparisons but replaces only once, for 12 steps. The gap between 12 and 22 is the difference between one trace and a promise about every list.