Esempio n. 1
0
        public void LongestRepeatingSubstring_1()
        {
            var solution = new _1062_LongestRepeatingSubstring();
            var result   = solution.LongestRepeatingSubstring("abcd");

            Assert.AreEqual(0, result);
        }
Esempio n. 2
0
        public void LongestRepeatingSubstring_3()
        {
            var solution = new _1062_LongestRepeatingSubstring();
            var result   = solution.LongestRepeatingSubstring("aabcaabdaab");

            Assert.AreEqual(3, result);
        }