Question: def greatest_difference(nums1: List[int], nums2: List[int]) -> int: Return the greatest absolute difference between numbers at corresponding positions in nums1 and nums2. Precondition: len(nums1) == len(nums2)

def greatest_difference(nums1: List[int], nums2: List[int]) -> int:

"""Return the greatest absolute difference between numbers at corresponding positions in nums1 and nums2.

Precondition: len(nums1) == len(nums2) and nums1 != []

>>> greatest_difference([1, 2, 3], [6, 8, 10])

7

"""

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!