<br />
<b>Warning</b>:  Undefined array key "global_protection_id" in <b>/home/wikitechy/public_html/interview-questions/wp-content/plugins/content-protector/inc/class-ps-rest-handler.php</b> on line <b>51</b><br />
{"id":485,"date":"2021-07-13T14:56:24","date_gmt":"2021-07-13T14:56:24","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=485"},"modified":"2021-09-13T07:18:43","modified_gmt":"2021-09-13T07:18:43","slug":"write-a-function-to-delete-a-node-from-doubly-linked-list","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/","title":{"rendered":"Write a function to Delete a node from Doubly Linked List ?"},"content":{"rendered":"<div class=\"TextHeading\">\n<div class=\"hddn\">\n<h2 id=\"write-a-function-to-delete-a-node-from-doubly-linked-list\" class=\"color-pink\" style=\"text-align: justify;\">Write a function to Delete a node from Doubly Linked List ?<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<ul>\n<li>In a\u00a0<a href=\"https:\/\/www.wikitechy.com\/technology\/insertion-sort-singly-linked-list\/\" target=\"_blank\" rel=\"noopener\">single linked list<\/a>, every node has link to its next node in the sequence.<\/li>\n<li>So, we can traverse from one node to another node only in one direction and we cannot traverse back. We can solve this kind of problem by using\u00a0<a href=\"https:\/\/www.wikitechy.com\/technology\/quicksort-doubly-linked-list-3\/\" target=\"_blank\" rel=\"noopener\">double linked list<\/a>.<\/li>\n<li>Double linked list is a sequence of elements in which every element has links to its previous element and next element in the sequence.<\/li>\n<li>In double linked list, every node has link to its previous node and next node. So, we can\u00a0<a href=\"https:\/\/www.wikitechy.com\/technology\/java-program-inorder-tree-traversal-without-recursion\/\" target=\"_blank\" rel=\"noopener\">traverse<\/a>\u00a0forward by using next field and can traverse backward by using previous field.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"ImageContent\">\n<div class=\"hddn\"><img decoding=\"async\" class=\"img-responsive center-block aligncenter\" src=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png\" alt=\" Delete a node Doubly Linked List\" \/><\/div>\n<div>\n<h2 id=\"algorithm\" class=\"color-green\" style=\"text-align: justify;\">Algorithm<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-markdown code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">Algorithm to delete node from any position<br\/>Input :<br\/> head <br\/> {<br\/>   Pointer to the first node of the list<br\/> }<br\/>last <br\/> {<br\/>   Pointer to the last node of the list<br\/> }<br\/>N <br\/> {<br\/>  Position to be deleted from list<br\/> }<br\/>Begin :<br\/>    current \u2190 head;<br\/>    For i \u2190 1 to N and current != NULL do<br\/>        current \u2190 current.next;<br\/>    End for<br\/>    If (N == 1) then<br\/>        deleteFromBeginning()<br\/>    End if<br\/>    Else if (current == last) then <br\/>        deleteFromEnd()<br\/>    End if<br\/>    Else if (current != NULL) then<br\/>        current.prev.next \u2190 current.next<br\/>        If (current.next != NULL) then<br\/>            current.next.prev \u2190 current.prev;<br\/>        End if<br\/>        unalloc (current)<br\/>        write (&#039;Node deleted successfully from &#039;, N, &#039; position&#039;)<br\/>    End if<br\/>    Else then<br\/>        write (&#039;Invalid position&#039;)<br\/>    End if<br\/>End<\/code><\/pre> <\/div>\n<h2 id=\"sample-code-in-c\" class=\"color-blue\" style=\"text-align: justify;\">Sample Code in C++<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-markdown code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">#include &lt;bits\/stdc++.h&gt; <br\/>  <br\/>using namespace std; <br\/>  <br\/>struct Node { <br\/>    int data; <br\/>    struct Node* next; <br\/>    struct Node* prev; <br\/>}; <br\/>  <br\/>\/* Function to delete a node in a Doubly Linked List. <br\/>   head_ref --&gt; pointer to head node pointer. <br\/>   del  --&gt;  pointer to node to be deleted. *\/<br\/>void deleteNode(struct Node** head_ref, struct Node* del) <br\/>{ <br\/>   <br\/>    if (*head_ref == NULL || del == NULL) <br\/>        return; <br\/>  <br\/>    \/* If node to be deleted is head node *\/<br\/>    if (*head_ref == del) <br\/>        *head_ref = del-&gt;next; <br\/>  <br\/>    \/* Change next only if node to be deleted is NOT  <br\/>       the last node *\/<br\/>    if (del-&gt;next != NULL) <br\/>        del-&gt;next-&gt;prev = del-&gt;prev; <br\/>  <br\/>    \/* Change prev only if node to be deleted is NOT  <br\/>       the first node *\/<br\/>    if (del-&gt;prev != NULL) <br\/>        del-&gt;prev-&gt;next = del-&gt;next; <br\/>  <br\/>    \/* Finally, free the memory occupied by del*\/<br\/>    free(del); <br\/>} <br\/>  <br\/>\/* Function to delete the node at the given position <br\/>   in the doubly linked list *\/<br\/>void deleteNodeAtGivenPos(struct Node** head_ref, int n) <br\/>{ <br\/>    \/* if list in NULL or invalid position is given *\/<br\/>    if (*head_ref == NULL || n &lt;= 0) <br\/>        return; <br\/>  <br\/>    struct Node* current = *head_ref; <br\/>    int i; <br\/>  <br\/>    \/* traverse up to the node at position &#039;n&#039; from <br\/>       the beginning *\/<br\/>    for (int i = 1; current != NULL &amp;&amp; i &lt; n; i++) <br\/>        current = current-&gt;next; <br\/>  <br\/>    \/* if &#039;n&#039; is greater than the number of nodes <br\/>       in the doubly linked list *\/<br\/>    if (current == NULL) <br\/>        return; <br\/>  <br\/>    \/* delete the node pointed to by &#039;current&#039; *\/<br\/>    deleteNode(head_ref, current); <br\/>} <br\/>  <br\/>\/* Function to insert a node at the beginning  <br\/>   of the Doubly Linked List *\/<br\/>void push(struct Node** head_ref, int new_data) <br\/>{ <br\/>    \/* allocate node *\/<br\/>    struct Node* new_node =  <br\/>         (struct Node*)malloc(sizeof(struct Node)); <br\/>  <br\/>    \/* put in the data  *\/<br\/>    new_node-&gt;data = new_data; <br\/>  <br\/>    \/* since we are adding at the beginning, <br\/>    prev is always NULL *\/<br\/>    new_node-&gt;prev = NULL; <br\/>  <br\/>    \/* link the old list off the new node *\/<br\/>    new_node-&gt;next = (*head_ref); <br\/>  <br\/>    \/* change prev of head node to new node *\/<br\/>    if ((*head_ref) != NULL) <br\/>        (*head_ref)-&gt;prev = new_node; <br\/>  <br\/>    \/* move the head to point to the new node *\/<br\/>    (*head_ref) = new_node; <br\/>} <br\/>  <br\/>\/* Function to print nodes in a given doubly <br\/>   linked list *\/<br\/>void printList(struct Node* head) <br\/>{ <br\/>    while (head != NULL) { <br\/>        cout &lt;&lt; head-&gt;data &lt;&lt; &quot; &quot;; <br\/>        head = head-&gt;next; <br\/>    } <br\/>} <br\/>  <br\/>\/* Driver program to test above functions*\/<br\/>int main() <br\/>{ <br\/>    \/* Start with the empty list *\/<br\/>    struct Node* head = NULL; <br\/>  <br\/>    \/* Create the doubly linked list 10&lt;-&gt;8&lt;-&gt;4&lt;-&gt;2&lt;-&gt;5 *\/<br\/>    push(&amp;head, 5); <br\/>    push(&amp;head, 2); <br\/>    push(&amp;head, 4); <br\/>    push(&amp;head, 8); <br\/>    push(&amp;head, 10); <br\/>  <br\/>    cout &lt;&lt; &quot;Doubly linked list before deletion:n&quot;; <br\/>    printList(head); <br\/>  <br\/>    int n = 2; <br\/>  <br\/>    \/* delete node at the given position &#039;n&#039; *\/<br\/>    deleteNodeAtGivenPos(&amp;head, n); <br\/>  <br\/>    cout &lt;&lt; &quot;\\nDoubly linked list after deletion:n&quot;; <br\/>    printList(head); <br\/>  <br\/>    return 0; <br\/>} <\/code><\/pre> <\/div>\n<h2 id=\"output\" class=\"color-purple\" style=\"text-align: justify;\">Output<\/h2>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-markdown code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markdown code-embed-code\">Doubly linked list before deletion:<br\/>10 8 4 2 5<br\/>Doubly linked list after deletion:<br\/>10 4 2 5<\/code><\/pre> <\/div>\n<div class=\"TextHeading\" style=\"text-align: justify;\">\n<div class=\"hddn\">\n<h2 id=\"time-complexity\" class=\"color-green\">Time Complexity<\/h2>\n<\/div>\n<\/div>\n<div class=\"Content\">\n<div class=\"hddn\">\n<ul>\n<li style=\"text-align: justify;\">O(n), in worst case where n is the number of nodes in the doubly linked list.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Answer : In a single linked list, every node has link to its next node in the sequence&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"passster_activate_protection":false,"passster_protect_child_pages":"","passster_protection_type":"password","passster_password":"","passster_activate_overwrite_defaults":"","passster_headline":"","passster_instruction":"","passster_placeholder":"","passster_button":"","passster_id":"","passster_activate_misc_settings":"","passster_redirect_url":"","passster_hide":"no","passster_area_shortcode":"","gtb_hide_title":false,"gtb_wrap_title":false,"gtb_class_title":"","gtb_remove_headerfooter":false,"footnotes":""},"categories":[3028],"tags":[195,3293,971,491,221,368,203,199,214,198,363,3057,3297,3287,3290,3292,3289,3295,3294,3286,3310,205,3311,3301,3313,3316,3299,3308,3309,3306,3303,3304,3315,3302,3307,3314,3312,3305,222,15934,484,3054,196,212,3291,3300,207,366,204,3298,206,972,200,3055,197,968,3056,3296,3288,285,969],"class_list":["post-485","post","type-post","status-publish","format-standard","hentry","category-data-structure","tag-accenture-interview-questions-and-answers","tag-algorithm-for-insertion-and-deletion-in-doubly-linked-list","tag-altimetrik-india-pvt-ltd-interview-questions-and-answers","tag-applied-materials-interview-questions-and-answers","tag-bharti-airtel-interview-questions-and-answers","tag-bmc-software-interview-questions-and-answers","tag-capgemini-interview-questions-and-answers","tag-casting-networks-india-pvt-limited-interview-questions-and-answers","tag-cgi-group-inc-interview-questions-and-answers","tag-chetu-interview-questions-and-answers","tag-ciena-corporation-interview-questions-and-answers","tag-collabera-te-interview-questions-and-answers","tag-delete-a-node-from-linked-list-in-c","tag-delete-all-nodes-in-doubly-linked-list","tag-delete-all-nodes-in-doubly-linked-list-c","tag-delete-at-position-in-a-doubly-linked-list","tag-delete-last-node-in-doubly-linked-list-in-c","tag-delete-last-node-in-doubly-linked-list-java","tag-delete-node-from-doubly-linked-list-c","tag-delete-node-from-doubly-linked-list-java","tag-deletion-in-doubly-linked-list","tag-dell-international-services-india-pvt-ltd-interview-questions-and-answers","tag-doubly-circular-linked-list-in-data-structure","tag-doubly-linked-list","tag-doubly-linked-list-c-code","tag-doubly-linked-list-deletion","tag-doubly-linked-list-deletion-program-in-cm","tag-doubly-linked-list-example","tag-doubly-linked-list-implementation","tag-doubly-linked-list-implementation-in-c","tag-doubly-linked-list-in-c","tag-doubly-linked-list-in-data-structure","tag-doubly-linked-list-insertion-and-deletion","tag-doubly-linked-list-java","tag-doubly-linked-list-operations","tag-doubly-linked-list-program-in-c","tag-doubly-linked-list-program-in-data-structure","tag-doubly-linked-list-program-in-data-structure-using-c","tag-flipkart-interview-questions-and-answers","tag-geekyants-interview-questions-and-answers","tag-genpact-interview-questions-and-answers","tag-globallogic-india-pvt-ltd-interview-questions-and-answers","tag-ibm-interview-questions-and-answers","tag-indecomm-global-services-interview-questions-and-answers","tag-insertion-and-deletion-in-doubly-linked-list-in-c","tag-lete-a-node-from-doubly-linked-list","tag-mphasis-interview-questions-and-answers","tag-netapp-interview-questions-and-answers","tag-oracle-corporation-interview-questions-and-answers","tag-remove-node-from-doubly-linked-list-java","tag-sap-labs-india-pvt-ltd-interview-questions-and-answers","tag-sapient-consulting-pvt-ltd-interview-questions-and-answers","tag-tech-mahindra-interview-questions-and-answers","tag-tracxn-technologies-pvt-ltd-interview-questions-and-answers","tag-unitedhealth-group-interview-questions-and-answers","tag-wipro-infotech-interview-questions-and-answers","tag-wm-global-technology-services-india-pvt-ltd-limited-wmgts-interview-questions-and-answers","tag-write-a-function-to-delete-a-node-from-doubly-linked-list","tag-write-a-function-to-delete-a-node-from-doubly-linked-list-java","tag-xoriant-solutions-pvt-ltd-interview-questions-and-answers","tag-yodlee-infotech-pvt-ltd-interview-questions-and-answers"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Write a function to Delete a node from Doubly Linked List ?<\/title>\n<meta name=\"description\" content=\"Write a function to Delete a node from Doubly Linked List ? - In a single linked list, every node has link to its next node in the sequence.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Write a function to Delete a node from Doubly Linked List ?\" \/>\n<meta property=\"og:description\" content=\"Write a function to Delete a node from Doubly Linked List ? - In a single linked list, every node has link to its next node in the sequence.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-13T14:56:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-13T07:18:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png\" \/>\n<meta name=\"author\" content=\"Editor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/\",\"name\":\"Write a function to Delete a node from Doubly Linked List ?\",\"isPartOf\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png\",\"datePublished\":\"2021-07-13T14:56:24+00:00\",\"dateModified\":\"2021-09-13T07:18:43+00:00\",\"author\":{\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\"},\"description\":\"Write a function to Delete a node from Doubly Linked List ? - In a single linked list, every node has link to its next node in the sequence.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/#primaryimage\",\"url\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png\",\"contentUrl\":\"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#website\",\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757\",\"name\":\"Editor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g\",\"caption\":\"Editor\"},\"url\":\"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Write a function to Delete a node from Doubly Linked List ?","description":"Write a function to Delete a node from Doubly Linked List ? - In a single linked list, every node has link to its next node in the sequence.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/","og_locale":"en_US","og_type":"article","og_title":"Write a function to Delete a node from Doubly Linked List ?","og_description":"Write a function to Delete a node from Doubly Linked List ? - In a single linked list, every node has link to its next node in the sequence.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/","og_site_name":"Wikitechy","article_published_time":"2021-07-13T14:56:24+00:00","article_modified_time":"2021-09-13T07:18:43+00:00","og_image":[{"url":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png"}],"author":"Editor","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Editor","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/","name":"Write a function to Delete a node from Doubly Linked List ?","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png","datePublished":"2021-07-13T14:56:24+00:00","dateModified":"2021-09-13T07:18:43+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757"},"description":"Write a function to Delete a node from Doubly Linked List ? - In a single linked list, every node has link to its next node in the sequence.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/data-structure\/write-a-function-to-delete-a-node-from-doubly-linked-list\/#primaryimage","url":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png","contentUrl":"https:\/\/cdn.wikitechy.com\/interview-questions\/data-structure\/delete-a-node-from-doubly-linked-list.png"},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/4d5a581fb5470d1560324bddc5e8b757","name":"Editor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e9531079fe7e07841b7b156c04d65e5f39d4adfd18b6ffe3edfff8ca5aab85b5?s=96&d=mm&r=g","caption":"Editor"},"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/editor\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/485","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=485"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/485\/revisions"}],"predecessor-version":[{"id":3521,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/485\/revisions\/3521"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}