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.
問題があり、少し混乱しています。実際には、(キューを使用して) 幅優先検索を使用して (バイナリ ツリーではなく) 一般的なツリーをトラバースする方法についてです。私が見つけることができるのは、二分木に関するものだけです。よろしくお願いします
一般的なツリーのアルゴリズムは、バイナリ ツリーの抽象化にすぎません。例えば-