Why is my method going into infinite recursion?

前端 未结 6 1395
心在旅途
心在旅途 2021-01-15 11:34

I\'ve written a method to help build a quadtree. Each quadtree has a root node, and a root node has 4 children. I\'m using depth recursion to stop this function from dividin

6条回答
  •  没有蜡笔的小新
    2021-01-15 11:51

    Can you replace "QuadtreeNode * &n" with "QuadtreeNode *n" for second argument in buildTreeHelper(...) and check for result please ???

提交回复
热议问题