Skip to content

Commit 8087fad

Browse files
committed
leetcode
1 parent cfc6b93 commit 8087fad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

BinaryTreePreorderTraversal/binary_tree_preorder_traversal.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ type TreeNode struct {
88

99
/*
1010
11-
Runtime: 0 ms, faster than 100.00% of Go online submissions for Binary Tree Preorder Traversal.
12-
Memory Usage: 2.1 MB, less than 40.85% of Go online submissions for Binary Tree Preorder Traversal.
11+
Runtime: 0 ms, faster than 100.00% of Go online submissions for Binary Tree PreOrder Traversal.
12+
Memory Usage: 2.1 MB, less than 40.85% of Go online submissions for Binary Tree PreOrder Traversal.
1313
1414
*/
1515

16-
func preorderTraversal(root *TreeNode) []int {
16+
func preOrderTraversal(root *TreeNode) []int {
1717
var res []int
1818
helper(root, &res)
1919
return res

0 commit comments

Comments
 (0)