https://ide.codingblocks.com/s/51642
https://hack.codingblocks.com/contests/c/512/348
showing wrong ans in one of the test cases. plz tell me my mistake.
https://ide.codingblocks.com/s/51642
https://hack.codingblocks.com/contests/c/512/348
showing wrong ans in one of the test cases. plz tell me my mistake.
Hi Ayush, your code prints true when I enter any single character whereas the question states that the first character should only be ‘a’.
Consider the following case, abbac
This gives true whereas the question states that each ‘a’ should be followed by nothing or ‘a’.
i dont know what else to add , i thought i have taken care of that in the first ‘‘if’’ loop.plzz tell me what else to add