Share my LOOP JAVA 1MS solution!! Easy understand!!
//Just remember to use result from the last step\n    public class Solution {\n        public void connect(TreeLinkNode root) {\n            if(root==null) retu
    //Just remember to use result from the last step\n    public class Solution {\n        public void connect(TreeLinkNode root) {\n            if(root==null) return;\n            while(root.left!=null){\n                TreeLinkNode tmp = root;\n                while(tmp!=null){\n                    tmp.left.next = tmp.right;\n                    if(tmp.next!=null) tmp.right.next = tmp.next.left;\n                    tmp = tmp.next;\n                }\n                root = root.left;\n            }\n        }\n    }
['Java']