```python
def max_difference(test_list):
    if not test_list:
        return 0
    return max(abs(a - b) for a, b in test_list)

```