We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ae8b55 commit 4f1879cCopy full SHA for 4f1879c
Linked List/linked_list_delete_node.go
@@ -8,6 +8,7 @@ package main
8
Approach:
9
1. We can move the data from the next node into the current node
10
2. Delete the next node.
11
+ Time Complexity: O(1). Space Complexity: O(1).
12
*/
13
func deleteNode(node *ListNode) {
14
temp = node.next
0 commit comments