コード例 #1
0
        public void FindSubstringTest2()
        {
            Solution30 s      = new Solution30();
            string     inputS = "a";

            string[]   words  = { "a", "a" };
            List <int> result = s.FindSubstring(inputS, words).ToList();


            return;
        }
コード例 #2
0
        public void FindSubstringTest3()
        {
            Solution30 s      = new Solution30();
            string     inputS = "wordgoodgoodgoodbestword";

            string[]   words  = { "word", "good", "best", "good" };
            List <int> result = s.FindSubstring(inputS, words).ToList();


            return;
        }
コード例 #3
0
        public void FindSubstringTest()
        {
            Solution30 s      = new Solution30();
            string     inputS = "barfoothefoobarman";

            string[]   words  = { "foo", "bar" };
            List <int> result = s.FindSubstring(inputS, words).ToList();


            return;
        }