# Binary tree construction in Python ```python= class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right t2 = TreeNode(2) t3 = TreeNode(3) t1 = TreeNode(1, t2, t3) ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up