Whats happening why dont you improve your system?
I’ve had two similar problems in a day
Code is giving right answer for test case1 (N=9) but it still shows it wrong
@7nishit
your logic was correct, but there was a minor bug in the test case.
for n==1 the answer was 1 (without a new line)
your code was printing new line.
I will give the suggestion to our team to made the required changes in the testcase.
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.
I have tried that as well…still test case 0 is giving wrong answer
For testcase zero, for n==1 just output 1 without a new line character at the end.
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.