Example #1
0
        static void Main(string[] args)
        {
            Solution s   = new Solution();
            var      res = s.P7(TestSolution.DesignBT4());

            PrintInorder(res);
        }
Example #2
0
        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);
        }