Find the maximum difference between two consecutive elements in a sorted list.
MediumProblem Statement
Find the maximum difference between two consecutive elements in a sorted list.
Sample Input
[1, 3, 8, 12, 20]
Sample Output
8
Limits
Time: 2s · Memory: 256 MB