Maximum difference between adjacent elements of list: Difference between revisions

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