Https://ide.codingblocks.com/s/282587

whats wrong in my code plzz comment it out

@Aditya-Kushwaha-914550392281281 the time complexity will be too high
you can build a pascal triangle the easy way
start with

 1
1 1 

and each consecutive row can be generated by the sum of previous row

 1 2 1
1 3 3 1
and so on

The GIF in the question explains how to build the triangle, dont use ncr method

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.