diff --git "a/problems/1035.\344\270\215\347\233\270\344\272\244\347\232\204\347\272\277.md" "b/problems/1035.\344\270\215\347\233\270\344\272\244\347\232\204\347\272\277.md" index 391246756b..d97f495a92 100644 --- "a/problems/1035.\344\270\215\347\233\270\344\272\244\347\232\204\347\272\277.md" +++ "b/problems/1035.\344\270\215\347\233\270\344\272\244\347\232\204\347\272\277.md" @@ -210,8 +210,5 @@ function maxUncrossedLines(nums1: number[], nums2: number[]): number { }; ``` - - - -----------------------
diff --git "a/\346\267\273\345\212\2400222.\345\256\214\345\205\250\344\272\214\345\217\211\346\240\221\347\232\204\350\212\202\347\202\271\344\270\252\346\225\260Go\347\211\210\346\234\254.md" "b/\346\267\273\345\212\2400222.\345\256\214\345\205\250\344\272\214\345\217\211\346\240\221\347\232\204\350\212\202\347\202\271\344\270\252\346\225\260Go\347\211\210\346\234\254.md" deleted file mode 100644 index 6001e7b78c..0000000000 --- "a/\346\267\273\345\212\2400222.\345\256\214\345\205\250\344\272\214\345\217\211\346\240\221\347\232\204\350\212\202\347\202\271\344\270\252\346\225\260Go\347\211\210\346\234\254.md" +++ /dev/null @@ -1,25 +0,0 @@ -```go -func countNodes(root *TreeNode) int { - if root == nil { - return 0 - } - q := list.New() - q.PushBack(root) - res := 0 - for q.Len() > 0 { - n := q.Len() - for i := 0; i < n; i++ { - node := q.Remove(q.Front()).(*TreeNode) - if node.Left != nil { - q.PushBack(node.Left) - } - if node.Right != nil { - q.PushBack(node.Right) - } - res++ - } - } - return res -} -``` - diff --git "a/\346\267\273\345\212\240559.n\345\217\211\346\240\221\347\232\204\346\234\200\345\244\247\346\267\261\345\272\246Go\347\211\210\346\234\254.md" "b/\346\267\273\345\212\240559.n\345\217\211\346\240\221\347\232\204\346\234\200\345\244\247\346\267\261\345\272\246Go\347\211\210\346\234\254.md" deleted file mode 100644 index 3172837d94..0000000000 --- "a/\346\267\273\345\212\240559.n\345\217\211\346\240\221\347\232\204\346\234\200\345\244\247\346\267\261\345\272\246Go\347\211\210\346\234\254.md" +++ /dev/null @@ -1,22 +0,0 @@ -```go -func maxDepth(root *Node) int { - if root == nil { - return 0 - } - q := list.New() - q.PushBack(root) - depth := 0 - for q.Len() > 0 { - n := q.Len() - for i := 0; i < n; i++ { - node := q.Remove(q.Front()).(*Node) - for j := range node.Children { - q.PushBack(node.Children[j]) - } - } - depth++ - } - return depth -} -``` -