Given a binary tree, return the preorder traversal of its nodes' values. For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. Note: Recursive solution is trivial, could you do it iteratively? 这题简单,属于课本习题的难度,题目提示说用迭代试试,当然用递归也可以AC的.迭代的时候要…