this is the link to my code of this problem : https://www.spoj.com/problems/DEFKIN/
which is very similar to the code shown in the video but it is giving wrong answer on SPOJ
Code giving wrong answer on SPOJ
the problem was in case of n=0…
thanks abhijeet.
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.