I HAVE APPLIED BACKTRACKING APPROACH AND FIBONACCI SEQUENCE WAS FOUND…BUT IT IS GIVING WRONG ANSWER…PLS HELP…
Getting wrong answer in class assignment question
Hi Saksham, save your code on ide.codingblocks.com and share the link here along with the name of the question.
Pls share the question here.
Hi Saksham, you’re not printing the output in the desired format.
The output format is
#1 : 2
#2 : 3
#3 : 5
Your code’s output is:
2
3
5
Just correct the output format, rest of the logic works fine.