My solution: https://ide.codingblocks.com/s/405484
Question: https://online.codingblocks.com/app/player/178555/content/173728/4913/code-challenge
error: program flow reaching end } even in bool function.
My solution: https://ide.codingblocks.com/s/405484
Question: https://online.codingblocks.com/app/player/178555/content/173728/4913/code-challenge
error: program flow reaching end } even in bool function.
hello @mohaktrivedi
check now->
a) in ur if statement u were not returning anything .
b) u were using left-1 in ur function call but it should be left+1
@Aman Yadav , made the required changes, now only Test Case 1,3 are passing, but 0,2 are failing - wrong answer. Here’s the code: https://ide.codingblocks.com/s/405904 Can you tell me what’s the mistake?
@Aman Yadav. Oh! I didn’t notice that. Thanks! But, even ‘5’ == ‘5’ will give the same result as 5==5, right? Then, why was it showing wrong answer? Why was it not working with char?
integer can have more than 1 digit in them.
and we cannot store such integer as char.
btw u r tagging wrong aman. its @aman212yadav
Oh yes! Thanks for solving my doubt @aman212yadav
Sorry, I was replying via Coding Blocks web app, not their discussion forum, and there it was showing only Aman Yadav, not your username aman212yadav.
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.