Skip to content

Commit 5150a6b

Browse files
Closed Scanner in 3 sum, fixed syntax errors in BucketSort.java
1 parent 88d65ff commit 5150a6b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Others/3 sum.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public static void main(String args[])
5353
else r--;
5454
}
5555
}
56-
5756

57+
sc.close();
5858

5959
}
6060
}

Sorts/BucketSort.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
package Sorts;
12

23
import java.util.Random;
34

4-
public class Bucket_Sort
5+
public class BucketSort
56
{
67
static int[] sort(int[] sequence, int maxValue)
78
{

0 commit comments

Comments
 (0)