https://ide.codingblocks.com/s/49548
F(n)=3F(N-3)+2F(N-1)-F(N-2)-3*F(N-4)+2
why i’m getting negative output?
for e.g
testcase
1
5 9 15
40
https://ide.codingblocks.com/s/49548
F(n)=3F(N-3)+2F(N-1)-F(N-2)-3*F(N-4)+2
why i’m getting negative output?
for e.g
testcase
1
5 9 15
40