mirror of
https://github.com/krahets/hello-algo.git
synced 2025-12-19 07:17:54 +08:00
Update the chapter tree.
This commit is contained in:
@@ -44,13 +44,13 @@ comments: true
|
||||
=== "Go"
|
||||
|
||||
```go title=""
|
||||
""" 链表结点类 """
|
||||
// 链表结点类
|
||||
type TreeNode struct {
|
||||
Val int
|
||||
Left *TreeNode
|
||||
Right *TreeNode
|
||||
}
|
||||
""" 结点初始化方法 """
|
||||
// 结点初始化方法
|
||||
func NewTreeNode(v int) *TreeNode {
|
||||
return &TreeNode{
|
||||
Left: nil,
|
||||
|
||||
Reference in New Issue
Block a user