Majority Element
Boyer–Moore voting finds the value appearing more than n/2 times in O(1) space (LeetCode #169).
8
03
117
25
312
41
59
614
7Elements live in one contiguous block of memory — index access is O(1), but insert/delete must shift their neighbours.