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.
こんにちは、ヒープが 2 つある場合、O(nlogn) ランタイムで同じキーを持っているかどうかをどのように判断しますか。ここで、n は 2 つの最小ヒープ間の合計サイズです。
ヒープの 1 つを別のヒープに追加することに関連している可能性があると考えていましたが、肯定的ではありません。