Exemple #1
0
        public void Test_Generic(int n, string[] expected)
        {
            var sol = new Solution();
            var res = sol.GenerateParenthesis(n);

            CollectionAssert.AreEquivalent(res, expected);
        }
Exemple #2
0
        static void Main(string[] args)
        {
            var s = new Solution();

            foreach (var item in s.GenerateParenthesis(3))
            {
                Console.WriteLine(item);
            }
        }