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 shubhamkanungo007@gmail.com for more details of the issues in the codes of DS and Algo. So that I can help you to overcome the issues.