Example #1
0
        public static void Test()
        {
            Solution s = new Solution();


            //[["leetcode","google","facebook"],["google","microsoft"],["google","facebook"],["google"],["amazon"]]
            //s.PeopleIndexes(new List<IList<string>>()
            //{
            //	new List<string>() {"leetcode","google","facebook" },
            //	new List<string>() {"google","microsoft" },
            //	new List<string>() { "google","facebook"},
            //	new List<string>() {"google" },
            //	new List<string>() { "amazon"},


            //}).PrintList();

            //[["kmccktodigztyrwpvlif","mcircxcauajyzlppedqy","rgjghlcicyocusukhmjb","zkcqvffyeekjdwqtjege"],["kfkzsjhkdrtsztchhazh","kmccktodigztyrwpvlif","rgjghlcicyocusukhmjb"],["kfkzsjhkdrtsztchhazh","kmccktodigztyrwpvlif","mcircxcauajyzlppedqy","zkcqvffyeekjdwqtjege"],["kfkzsjhkdrtsztchhazh","kmccktodigztyrwpvlif","mcircxcauajyzlppedqy","rgjghlcicyocusukhmjb"],["kfkzsjhkdrtsztchhazh","kmccktodigztyrwpvlif"]]

            s.PeopleIndexes(new List <IList <string> >()
            {
                new List <string>()
                {
                    "kmccktodigztyrwpvlif", "mcircxcauajyzlppedqy", "rgjghlcicyocusukhmjb", "zkcqvffyeekjdwqtjege"
                },
                new List <string>()
                {
                    "kfkzsjhkdrtsztchhazh", "kmccktodigztyrwpvlif", "rgjghlcicyocusukhmjb"
                },
                new List <string>()
                {
                    "kfkzsjhkdrtsztchhazh", "kmccktodigztyrwpvlif", "mcircxcauajyzlppedqy", "zkcqvffyeekjdwqtjege"
                },
                new List <string>()
                {
                    "kfkzsjhkdrtsztchhazh", "kmccktodigztyrwpvlif", "mcircxcauajyzlppedqy", "rgjghlcicyocusukhmjb"
                },
                new List <string>()
                {
                    "kfkzsjhkdrtsztchhazh", "kmccktodigztyrwpvlif"
                },
            }).PrintList();
        }