my code link - https://ide.codingblocks.com/s/71160
test cases 2,3 are failing
check ur ans for some large value like 89 u will find the mistake
hey i tried using fibonacci approach also, but still same issue. Kindly tell where i am wrong !
for input 89 the value is coming is negative that means the data type u r using is enable to store that value and throwing garbage so there problem in ur data type
Hi Tanay
If your doubt is resolved, then please mark it as resolved in your course’s ask doubt section.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.