halfrost / S2

S2 geometry library in Go | experiment version
Apache License 2.0
21 stars 5 forks source link

1818. Minimum Absolute Sum Difference | LeetCode Cookbook #743

Open halfrost opened 3 years ago

halfrost commented 3 years ago

https://books.halfrost.com/leetcode/ChapterFour/1800~1899/1818.Minimum-Absolute-Sum-Difference/

enoche commented 2 years ago

t := 100001 还有 min(t, abs(n1-n2)) 可以直接用==> abs(n1-n2),因为根据限定:abs(n1-n2)<=1e5 leetcode已验证一次,可以少跑8ms。