Maximum difference between adjacent elements of list: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 21:
second = sList[2]
sortList = []
add(sortList,[oldDiff,first,second])
for n =
diff = fabs(sList[n]-sList[n+1])
oldDiff = diff
|