这一题的这个方法,是怎么 prevent buying overlap 的? https://gist.github.com/JasonGideon/662449ccbf8238c5ca43f30f1b8c48b6