So, now what should you do here, the tail should go to p previous. So, in case two when p is the end of the list that we want to delete. Then tail should go into previous. Now this guys next to will now point to null, because we are going to delete this node.
आता बघू या जो नोड डिलिट करायचा समजा p हा tail नोड असेल tail नोड ची previous लिंक हि p च्या अगोदरच्या नोड ला म्हणजे previous लिंक ला जोडली जाईल आणि tail नोड ची नेक्स्ट लिंक null सेट होईल .