static void Main(string[] args) { Solution s = new Solution(); var res = s.P7(TestSolution.DesignBT4()); PrintInorder(res); }
static void Main(string[] args) { Solution s = new Solution(); // TreeNode x = new TreeNode(1); // x.left = new TreeNode(2); var res = s.DeleteinBT(TestSolution.DesignBT1(), 2); BFS_Print(res); }