![]() |
1
5
下面是的递归实现
这里是一个迭代实现
|
![]() |
2
3
以及一个使用 recursive iterator :
或者,如果你真的想得到幻想,你可以使用 filter iterator :
|