Trees Treversals Estimated reading: 1 minute 28 views Binary Tree Inorder Traversal public List inorderTraversal(TreeNode root) { List result = new ArrayList<>(); inorderHelper(root, result); return result; } private void inorderHelper(TreeNode node, List result) { if (node == null) { return; } // Traverse left subtree inorderHelper(node.left, result); // Visit root result.add(node.val); // Traverse right subtree inorderHelper(node.right, result); }