Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, return [1,2,3]. Note: Recursive solution is trivial, could you do it iteratively? 先序遍历应该是三种遍历方式中最好使用非递归来实现的了. 能够每次訪问一个节点后再将其右子节点入栈,然后左子…