Skip to content

Commit 347f7f7

Browse files
authored
Removed " var a duplicate "
Removed the var a duplicate line as requested.
1 parent da2e863 commit 347f7f7

File tree

1 file changed

+1
-2
lines changed
  • JavaScript/chapter02/2.2 - Return Kth to Last

1 file changed

+1
-2
lines changed

JavaScript/chapter02/2.2 - Return Kth to Last/solution.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ var findKthToLast = function(k, head) {
1919

2020
/* Tests */
2121
var a = new linkedList('1');
22-
var a = new linkedList('1');
2322
var b = new linkedList('2');
2423
var c = new linkedList('3');
2524
var d = new linkedList('4');
@@ -38,4 +37,4 @@ findKthToLast(3, a);
3837
findKthToLast(10, a);
3938
findKthToLast(-1, a);
4039
findKthToLast(0, a);
41-
findKthToLast(1, a);
40+
findKthToLast(1, a);

0 commit comments

Comments
 (0)