question : https://hack.codingblocks.com/app/practice/1/149/problem
answer: https://ide.codingblocks.com/s/288351
Not able to clear test case
Hi Bhavya
You have not applied the cyclic condition, which is that ‘a’ follows ‘z’. Apply that condition to the q == 1 case
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.