Skip to content

Commit

Permalink
feat:add 百度面经
Browse files Browse the repository at this point in the history
  • Loading branch information
mao888 committed Aug 29, 2024
1 parent 12df985 commit 640c670
Showing 1 changed file with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package main

import "fmt"

//type ListNode struct {
// Val int
// Next *ListNode
//}

//type TreeNode struct {
// Val int
// Left *TreeNode
// Right *TreeNode
//}
// 构建一个示例二叉树
// 1
// / \
// 2 3
// /| |\
// 4 5 6 7
//root := &TreeNode{Val: 1}
//root.Left = &TreeNode{Val: 2}
//root.Right = &TreeNode{Val: 3}
//root.Left.Left = &TreeNode{Val: 4}
//root.Left.Right = &TreeNode{Val: 5}
//root.Right.Left = &TreeNode{Val: 6}
//root.Right.Right = &TreeNode{Val: 7}

func main() {
fmt.Println("Hello World!")
}

0 comments on commit 640c670

Please sign in to comment.