From 03ddf444ec8e7a241a14bcddcd16d048880ea1d9 Mon Sep 17 00:00:00 2001 From: Godfrain Jacques Date: Tue, 26 Nov 2024 23:50:32 -0800 Subject: [PATCH] Update insert-at-end.js --- logic/linked-list/insert-at-end.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logic/linked-list/insert-at-end.js b/logic/linked-list/insert-at-end.js index 0d9a528..dfd2ed5 100644 --- a/logic/linked-list/insert-at-end.js +++ b/logic/linked-list/insert-at-end.js @@ -2,7 +2,7 @@ var question = [ { id: "Insert at end", category: "Linked List", - placeHolderCpp: `struct Node {\n int data;\n Node* next;\n};\n\nvoid insertAtEnd(Node** head, int newData) {\n ...\n}\n\nvoid printList(Node* head) {\n ...\n}\n\n\n\n\n\n\n\n\n\n\n`, + placeHolderCpp: `struct ListNode {\n int data;\n ListNode* next;\n};\n\nvoid insertAtEnd(ListNode** head, int v) {\n ...\n}\n\nvoid printList(ListNode* head) {\n ...\n}\n\n\n\n\n\n\n\n\n\n\n`, placeHolderGo: `type Node struct {\n data int\n next *Node\n}\n\nfunc insertAtEnd(head **Node, newData int) {\n ...\n}\n\nfunc printList(head *Node) {\n ...\n}\n\n\n\n\n\n\n\n\n\n\n`, difficulty: "Medium", question: "Insert and Print Linked List",