using System.Collections.Generic;
public static void Main()
Console.WriteLine("Hello World");
public static List<int> InorderTraversal(TreeNode root) {
List<int> visited = new List<int>();
Stack<TreeNode> stack = new Stack<TreeNode>();
while (cur != null || stack.Count > 0) {
public TreeNode(int x) { val = x; }