I am not able to understand where am I going wrong
SEQ - Recursive Sequence
Hey @gargayush34
Your code works fine for test case on SPOJ. Just one issue. You are doing :
if(n<=k):
print(b[k-1])
You need to do :
if(n<=k):
print(b[n-1])
Thank you… It is Accepted now
1 Like