Comments on: Delete alternate node of the linked list https://demo.ritambhara.in/delete-alternate-node-of-the-linked-list/ Coding / System Design Interviews Tue, 16 Jun 2015 04:57:05 +0000 hourly 1 https://wordpress.org/?v=6.8.1 By: Kamal Rawat https://demo.ritambhara.in/delete-alternate-node-of-the-linked-list/#comment-1666 Tue, 16 Jun 2015 04:57:05 +0000 http://www.ritambhara.in/?p=121#comment-1666 In reply to manisha.

I think it can be changed for any kind of question, When we have double pointers, when we want to delete every 3’rd node (or every k’th node… You may want to have a look at how you are manipulating the pointers, because that is where the problem normally comes..

]]>
By: manisha https://demo.ritambhara.in/delete-alternate-node-of-the-linked-list/#comment-1665 Wed, 10 Jun 2015 17:42:40 +0000 http://www.ritambhara.in/?p=121#comment-1665 can we do this using double pointers? i did it..my code doesnt run

]]>
By: Kamal Rawat https://demo.ritambhara.in/delete-alternate-node-of-the-linked-list/#comment-1664 Mon, 24 Jun 2013 10:00:41 +0000 http://www.ritambhara.in/?p=121#comment-1664 In reply to Kassim Abul.

thanks for pointing it out.. updated the code..

]]>
By: Kassim Abul https://demo.ritambhara.in/delete-alternate-node-of-the-linked-list/#comment-1663 Mon, 24 Jun 2013 03:16:06 +0000 http://www.ritambhara.in/?p=121#comment-1663 there will be run time error while head point to null and next is assigne the link of head ie null.

]]>