Same algorithm, different inputs.
Best: element at start → O(1) Worst: element at end → O(n) Average: somewhere in middle → O(n)