Skip to content

Commit

Permalink
Update insert-at-end.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kounkou authored Nov 27, 2024
1 parent fd1f6eb commit 03ddf44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/linked-list/insert-at-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 03ddf44

Please sign in to comment.