We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfc6b93 commit 8087fadCopy full SHA for 8087fad
BinaryTreePreorderTraversal/binary_tree_preorder_traversal.go
@@ -8,12 +8,12 @@ type TreeNode struct {
8
9
/*
10
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.
+Runtime: 0 ms, faster than 100.00% of Go online submissions for Binary Tree PreOrder Traversal.
+Memory Usage: 2.1 MB, less than 40.85% of Go online submissions for Binary Tree PreOrder Traversal.
13
14
*/
15
16
-func preorderTraversal(root *TreeNode) []int {
+func preOrderTraversal(root *TreeNode) []int {
17
var res []int
18
helper(root, &res)
19
return res
0 commit comments