So, this is the first case, where p the node to be deleted was the head of the list. Similarly, if you want to delete the tail of the list. So, now what should you do here, the tail should go to p previous.
आधी आपण पहिले जो नोड डिलीट करायचं P तो हेड नोड असेल तर .