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.
如何计算快速联合算法的最坏情况。实际上,当涉及到树的高度时,我总是在时间复杂度上苦苦挣扎。我知道它与 O(h) 有关,但是树是在代码中开发的。
那么正确的方法应该是什么?