「数据结构」树的遍历
javascriptfunction dfs(root){ //do sth dfs(root.left); dfs(root.right); }
javascriptfunction dfs(root){ dfs(root.left); //do sth dfs(root.right); }
javascriptfunction dfs(root){ dfs(root.left); dfs(root.right); //do sth }
javascriptfunction dfs(root){ //do sth dfs(root.left); dfs(root.right); }
javascriptfunction dfs(root){ dfs(root.left); //do sth dfs(root.right); }
javascriptfunction dfs(root){ dfs(root.left); dfs(root.right); //do sth }