Every correct algorithm needs Ω(n) time

“We have to read all the numbers.” — an adversary argument, played out step by step. Suppose some algorithm solved the maximum subarray problem in o(n) time. Then on large enough inputs it must stop before it has looked at every entry. Watch what the adversary does with the entry it skipped.

n
The input the algorithm is given