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.
如何将给定的 BST 重建为包含完全相同密钥的 AVL?算法运行时间应该是 O(n) 并且它允许使用 O(n) 额外的空间。有任何想法吗?整个伪代码不是必需的,任何想法或建议将不胜感激!谢谢!
我为你自己的研究省略了细节