Catalan Numbers Problem


one test case fail
help me !

it is giving 31 catalan number wrong, negative

i think there is over flow.
then i have to migrate python from cpp.
or

any ideas how to fixed this ??


i have both these solutions , in python and cpp

that’s awesome solution.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

1 Like