mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-10 04:26:27 +08:00
Closed Scanner in 3 sum, fixed syntax errors in BucketSort.java
This commit is contained in:
@ -53,8 +53,8 @@ class threesum{
|
|||||||
else r--;
|
else r--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
sc.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,8 @@
|
|||||||
|
package Sorts;
|
||||||
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class Bucket_Sort
|
public class BucketSort
|
||||||
{
|
{
|
||||||
static int[] sort(int[] sequence, int maxValue)
|
static int[] sort(int[] sequence, int maxValue)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user