这棵树是那棵树高度的两倍。
看看你周围的树。有些树的高度超过100米。
Look at the trees around you. Some trees are over 100 meters tall.
这减少了迭代过程中的内存占用,因为堆栈深度始终保持一致,而不依赖于树的高度。
This reduces memory usage during the iteration because the stack depth is constant instead of dependent on the height of the tree.
应用推荐