We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 302bb96 commit 77cda35Copy full SHA for 77cda35
problems/design-linked-list/design_linked_list_test.go
@@ -10,6 +10,8 @@ func TestConstructor(t *testing.T) {
10
output := obj.Get(1) == 2 // returns 2
11
obj.DeleteAtIndex(1) // now the linked list is 1->3
12
output = obj.Get(1) == 3 && output
13
+ obj.AddAtIndex(2, 2) // linked list becomes 1->3->2
14
+ output = obj.Get(5) == -1 && output
15
if !output {
16
t.Fatalf("output: %v, expected: %v", output, true)
17
}
0 commit comments