Maximum difference between adjacent elements of list: Difference between revisions
Content deleted Content added
→{{header|Python}}: Added a version in Python |
|||
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 = [ |