Categorygithub.com/szhou12/leetcode-goleetcode1382-Balance-a-Binary-Search-Tree
package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev

# README

1382. Balance a Binary Search Tree

Solution idea

构造BST

Time complexity = $O(n) + O(\log n) = O(n)$

Resrouce

代码随想录-1382.将二叉搜索树变平衡