---
title: "Discussion on \"1382. Balance a Binary Search Tree\" | Hashnode"
description: "Discussion on \"1382. Balance a Binary Search Tree\". # Definition for a binary tree node.\n# class TreeNode:\n#     def __init__(self, val=0, left=None, right=None):\n#         self.val = val\n#         self.left = left\n#         self.right = right\nclass Solution:\n    def balanceBST(self, root: TreeNode) -..."
url: "https://hashnode.com/posts/1382-balance-a-binary-search-tree/698950802dd5b57c8e0142e8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [1382\. Balance a Binary Search Tree](https://tapanrachchh.hashnode.dev/1382-balance-a-binary-search-tree?utm_source=hashnode&utm_medium=feed)

\# Definition for a binary tree node. # class TreeNode: # def \_\_init\_\_(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def balanceBST(self, root: TreeNode) -...

Feb 9 · 1 min read · tapanrachchh.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#binary-search-tree](https://hashnode.com/tag/binary-search-tree)

## Written by

[Tapan Rachchh](https://hashnode.com/@tapanrachchh)

@tapanrachchh

  
[View profile](https://hashnode.com/@tapanrachchh)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
