Works well with sample input, but all test cases are failing.
Can you tell me where am I going wrong?
My solution: https://ide.codingblocks.com/s/405447
Question: https://online.codingblocks.com/app/player/178555/content/173728/4830/code-challenge
Works well with sample input, but all test cases are failing.
Can you tell me where am I going wrong?
My solution: https://ide.codingblocks.com/s/405447
Question: https://online.codingblocks.com/app/player/178555/content/173728/4830/code-challenge
Your output is telling in form of number, you to tell it in form of a alphabet
Check now =>
Oh yes! Forgot what I ‘actually’ had to print. Thanks for pointing it out. @Encoder
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.
@Encoder Now, only the 4th test case is failing. Can you check what’s wrong? Here’s the code: https://ide.codingblocks.com/s/405461
Hey @mohaktrivedi
if(strlen(ch) == 1)
{
cout<<ch[0];///updated this , u forgot to update this
return 0;
}