Exemple #1
0
        /// <summary>
        /// 990. 等式方程的可满足性
        /// https://leetcode-cn.com/problems/satisfiability-of-equality-equations/
        /// </summary>
        public static void Test0990()
        {
            var solution = new Solution();
            var result   = solution.EquationsPossible(new string[] { "b==a", "a==b" });

            Console.WriteLine(result);
            result = solution.EquationsPossible(new string[] { "a!=a" });
            Console.WriteLine(result);
            result = solution.EquationsPossible(new string[] { "a==b", "b!=c", "c==a" });
            Console.WriteLine(result);
        }