Example #1
0
        public void GcdOfStrings_1()
        {
            var solution = new _1071_GreatestCommonDivisorOfStrings();
            var result   = solution.GcdOfStrings("ABCABC", "ABC");

            Assert.AreEqual("ABC", result);
        }
Example #2
0
        public void GcdOfStrings_3()
        {
            var solution = new _1071_GreatestCommonDivisorOfStrings();
            var result   = solution.GcdOfStrings("LEET", "CODE");

            Assert.AreEqual("", result);
        }