LeetCode
Quad Tree Intersection
Click
here
for an explanation.