摘要:
将左子树移到右边循环即可 1 public class Solution { 2 public void flatten(TreeNode root) { 3 // IMPORTANT: Please reset any member data you declared, as 4 // the same Solution instance will be reused for each test case. 5 while(root != null){ 6 if(root.left != null){ 7 ... 阅读全文