Problem - https://hack.codingblocks.com/contests/c/537/53
My solution - https://ide.codingblocks.com/s/40774
I think my solution is correct but I don’t know why it is not passing the test case.
Problem - https://hack.codingblocks.com/contests/c/537/53
My solution - https://ide.codingblocks.com/s/40774
I think my solution is correct but I don’t know why it is not passing the test case.
Hey Tarun, your solution is not correct as
for input : 5
correct pascal triangle will be :
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
but your code’s output is
1
1 1
1 2 1
1 3 3 1
1 4 4 4 1