whats wrong in my code??
I wrote the same code on hackerblocks and passed all the testcase but here I am getting one testcase failed and the rest as passed
Coding error one testcase failed
itβs been more than 24 hrs sir?
my query has not been resolved
Logic of your code seems correct.
I think your code is failing for n=1β¦
Output should be:
1
Your o/p:
_1 (where _ is for space).
Check now.