• + 2 comments

    Careful, I suck at doing big O notation in my head but isn't that possibly O2(n) since you're computing max twice in the case that it's less than?