Maximum difference between adjacent elements of list: Difference between revisions

m
(→‎{{header|Python}}: Added a version in Python)
Line 96:
def maxDeltas(ns):
'''Each of the maximally differing successive pairs
in ns, each preceded by the value of the difference.
'''
pairs = [
9,659

edits