Well my code is giving correct answers for inputs but on submission its giving wrong answer…
i want to know whats wrong in the approach i have used or a particular test case which is failing…
problem - CodeChef: Practical coding for everyone
my solution - CodeChef: Practical coding for everyone
brief about approach used -
firstly i have taken base and the string , then when it is taking input for first time i have stored the possible answers in an array named arr, then i have checked if value of answer is their in arr or not for all other inputs … and i have also taken care for the condition when n=1.
its been 5 days i am looking for a case where the code is failing but i cant find one. …
It will be really thankfull if someone helps me in doing so…