Wrong answer - test cases

All my testcases have passed except the first one. Whats missing in my code? https://ide.codingblocks.com/s/70685?

Hi Ankush, pls see that your code is failing for testcase where n is 1. At n = 1 answer should be just 1. Make this correction and submit your code, it will pass all the testcases then :slight_smile: .

@proRram Thanks ! All tests passed.

1 Like

Hey Ankush,

If your doubts is resolved, then please mark it as resolved in your course’s “ Ask Doubt ” section.