We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c10ca4 + a662b91 commit a61c1faCopy full SHA for a61c1fa
237. Delete Node in a Linked List
@@ -0,0 +1,8 @@
1
+class Solution {
2
+public:
3
+ void deleteNode(ListNode* node) {
4
+ node->val=node->next->val;
5
+ node->next=node->next->next;
6
+
7
+ }
8
+};
0 commit comments