예제 #1
0
        public void TestPreorderSerializationBinaryTree2()
        {
            string input = "1,#";

            Assert.IsFalse(VerifyPreorderSerializationBinaryTree.IsValidSerialization(input));
        }
예제 #2
0
        public void TestPreorderSerializationBinaryTree1()
        {
            string input = "9,3,4,#,#,1,#,#,2,#,6,#,#";

            Assert.IsTrue(VerifyPreorderSerializationBinaryTree.IsValidSerialization(input));
        }