Maximum difference between adjacent elements of list: Difference between revisions
Maximum difference between adjacent elements of list (view source)
Revision as of 16:52, 18 July 2021
, 2 years ago→{{header|Python}}
(→{{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 = [
|