コード例 #1
0
        static void Main(string[] args)
        {
            string[] m      = { "two", "times", "three", "is", "not", "four" };
            string[] n      = { "two", "times", "two", "is", "four" };
            string   result = RansomNote.Solution(m, n);

            Console.WriteLine(result);
        }
コード例 #2
0
        public void Test1()
        {
            string[] m        = { "give", "me", "one", "grand", "today", "night" };
            string[] n        = { "give", "one", "grand", "today" };
            string   expected = "Yes";
            string   result   = RansomNote.Solution(m, n);

            Assert.Equal(expected, result);
        }
コード例 #3
0
        public void Test3()
        {
            string[] m        = { "ive", "got", "a", "lovely", "bunch", "of", "coconuts" };
            string[] n        = { "ive", "got", "some", "coconuts" };
            string   expected = "No";
            string   result   = RansomNote.Solution(m, n);

            Assert.Equal(expected, result);
        }
コード例 #4
0
        public void Test2()
        {
            string[] m        = { "two", "times", "three", "is", "not", "four" };
            string[] n        = { "two", "times", "two", "is", "four" };
            string   expected = "No";
            string   result   = RansomNote.Solution(m, n);

            Assert.Equal(expected, result);
        }