x/masx200_leetcode_test/maximum-product-difference-between-two-pairs/index.go
12345678910package indeximport "sort"func maxProductDifference(a []int) int { sort.Ints(a) n := len(a) return a[n-1]*a[n-2] - a[0]*a[1]}