How to find number of correctly matched parentheses using Catalan numbers?

前端 未结 0 1107
孤城傲影
孤城傲影 2020-12-03 14:49

I have a task to find number of expressions containing n parentheses which are correctly matched. So, I decided to use Catalan number. Here is a python code.

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题