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 つのソートされていない配列があり、各配列の長さはnです。これらの配列にはランダムな整数が含まれています。これら 2 つの配列に時間内に共通の要素があるかどうかを調べる方法はΘ(n*logn)?
n
Θ(n*logn)
並べ替えはできません。