题目: 题解:
type Solution struct {m, n, total intmp map[int]int
}func Constructor(m, n int) Solution {return Solution{m, n, m * n, map[int]int{}}
}func (s *Solution) Flip() (ans []int) {x : rand.Intn(s.total)s.total--if y, o…
来源:
Van de Ven, Niels, Marcel Zeelenberg, and Rik Pieters (2011), "The Envy Premium in Product Evaluation," Journal of Consumer Research, 37 (6), 984-98.4
Van de Ven, Niels, Marcel Zeelenberg, and Rik Pieters (2009), "Leveling…