tag:blogger.com,1999:blog-6294663875929591018.post4355005157269007619..comments2023-09-24T03:12:58.137-07:00Comments on Ramblings of a techie: Linked List : Given a pointer to any node, delete the node pointed by the pointerBragBoyhttp://www.blogger.com/profile/01173019524783723568noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6294663875929591018.post-40204945006228473702013-10-28T02:27:49.931-07:002013-10-28T02:27:49.931-07:00@mani: thanks for the insight. if the given node i...@mani: thanks for the insight. if the given node is the tail, we can as well add a condition to check whether its the last node and simply destroy it.<br /><br />code;<br />if(p->next == null){<br /> delete p;<br /> return;<br />}bragadeeshhttps://www.blogger.com/profile/05516264230057880613noreply@blogger.comtag:blogger.com,1999:blog-6294663875929591018.post-72476654125985852332013-03-15T14:55:01.814-07:002013-03-15T14:55:01.814-07:00This works as long as the given node is not the ta...This works as long as the given node is not the tail of the linked list. It might not work if the node given is the tail...Manihttps://www.blogger.com/profile/06532761005825340409noreply@blogger.com