Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

deleteNode javascript

const deleteNode = (node) => {
  node.val = node.next.val;
  node.next = node.next.next;
};
Source by leetcode.com #
 
PREVIOUS NEXT
Tagged: #deleteNode #javascript
ADD COMMENT
Topic
Name
8+1 =