All my testcases have passed except the first one. Whats missing in my code? https://ide.codingblocks.com/s/70685?
Wrong answer - test cases
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 .
Hey Ankush,
If your doubts is resolved, then please mark it as resolved in your course’s “ Ask Doubt ” section.