# 1913. Maximum Product Difference Between Two Pairs ###### tags: `Leetcode` `Easy` Link: https://leetcode.com/problems/maximum-product-difference-between-two-pairs/description/ ## Code ```python= class Solution: def maxProductDifference(self, nums: List[int]) -> int: nums.sort() return nums[-1]*nums[-2]-nums[0]*nums[1] ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up