Esempio n. 1
0
        public void TestMethod2()
        {
            long test1 = LCA.GetLowestCommonAncestor(values, 29, 44);
            long test2 = LCA.GetLowestCommonAncestor(values, 44, 85);
            long test3 = LCA.GetLowestCommonAncestor(values, 83, 87);

            Assert.AreEqual(test1, 39);
            Assert.AreEqual(test2, 67);
            Assert.AreEqual(test3, 85);
        }