コード例 #1
0
        public void InvertTreeTest()
        {
            var      s = new Solution();
            TreeNode root, expected;

            root     = TreeNode.Build(4, 2, 7, 1, 3, 6, 9);
            expected = TreeNode.Build(4, 7, 2, 9, 6, 3, 1);
            Assert.Equal(expected, s.InvertTree(root));
        }