123456789101112131415
public class preorder{ private List<TreeNode> list; public List<TreeNode> inorder(TreeNode root){ if(root ==null){ return null; } inorder(root.left); list.add(root); inorder(root.right); return list; }}
sanwanliu
Posts
44
Categories
5
Tags
18
Update your browser to view this website correctly. Update my browser now
×