Code of the Doubly linked list is not proper along with the loops and condition.Please look into the matter so that student can understand well. And you can also contact me at [email protected] for more details of the issues in the codes of DS and Algo. So that I can help you to overcome the issues.