having different outputs while submitting code and custom inputs
for custom input=4,the code is working properly
whereas while submitting it,the code fails.
Your function returned the following :
1 4 7 8 1
The expected returned value :
1 4 6 4 1
having different outputs while submitting code and custom inputs
for custom input=4,the code is working properly
whereas while submitting it,the code fails.
Your function returned the following :
1 4 7 8 1
The expected returned value :
1 4 6 4 1
Yes, I am facing exactly the same issue! Seems like a bug from InterviewBit. I hope they fix it and award us the correct points.
Mine also shows incorrect output for 4 even though it gives the perfectly correct result on testing with custom input.
Your function returned the following :
1 4 9 17 1
The expected returned value :
1 4 6 4 1