Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个问题,我有点困惑。它实际上是关于如何使用广度优先搜索(使用队列)遍历一般树(不是二叉树)。我能找到的只是二叉树。预先谢谢你
一般树的算法应该只是二叉树的抽象。例如-