Storing trees is a common problem, with multiple solutions. There are two major approaches: the adjacency list model, and the modified preorder tree traversal algorithm.
英
美
- 存储树是一个平常的问题,有多个解决方案。有两个主要的方法:邻接列表模式和预排序遍历树算法。