Пример #1
0
        static void Main(string[] args)
        {
            Solution s   = new Solution();
            var      res = s.PopulateInorderSuccessor(TestSolution.DesignBT4());

            Print(res);
        }
Пример #2
0
        static void Main(string[] args)
        {
            Solution s    = new Solution();
            var      root = TestSolution.DesignBT4();

            s.SetInorderPredecessor(root);
            Print(root);
        }