```python
def max_occurrences(nums):
    if not nums:
        return None
    
    counts = {}
    for item in nums:
        counts[item] = counts.get(item, 0) + 1
        
    return max(counts, key=counts.get)
```