Why this is not working here?

Why this is not working here?

I have edited your code… Try to submit it now…

Mam need your help, Many a times I am able to design the algorithm but then its very difficult to implement it, even if I implement it then there is something missing like return; or something like that and it doesn’t work. What should I do then?

AND Please tell Whether I should follow a book along with this course or not?

You can follow any ds algo book you want along with the course… And I will suggest you to practice as many questions as you can… only then you will be able to improve your implementation part I guess…