Пример #1
0
        private void button_LeetCodeMedium_Click(object sender, EventArgs e)
        {
            Medium = new Medium();

            //Medium.NumTrees(5);
            //var result = Medium.MaxDepth2(Medium.GetTreeNode5());
            //Medium.MaxProfit(new int[] { 7, 1, 5, 3, 6, 4 });

            //var preorder = new int[] { 3, 9, 20, 15, 7 };
            //var inorder = new int[] { 9, 3, 15, 20, 7 };
            //var result = Medium.BuildTree(preorder, inorder);

            //Medium.Flatten(Medium.GetTreeNode5());

            Medium.CopyRandomList(Medium.GetNodes());

            return;
        }