diff --git a/checkstyle.xml b/checkstyle.xml
index bff19ff7..f6ad3c22 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -120,7 +120,7 @@
-
+
diff --git a/src/main/java/com/thealgorithms/backtracking/AllPathsFromSourceToTarget.java b/src/main/java/com/thealgorithms/backtracking/AllPathsFromSourceToTarget.java
index 71bf012d..a21f8c05 100644
--- a/src/main/java/com/thealgorithms/backtracking/AllPathsFromSourceToTarget.java
+++ b/src/main/java/com/thealgorithms/backtracking/AllPathsFromSourceToTarget.java
@@ -8,7 +8,8 @@
/**Wikipedia link -> https://en.wikipedia.org/wiki/Shortest_path_problem */
package com.thealgorithms.backtracking;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.List;
public class AllPathsFromSourceToTarget {
diff --git a/src/main/java/com/thealgorithms/backtracking/ArrayCombination.java b/src/main/java/com/thealgorithms/backtracking/ArrayCombination.java
index ed5a0c93..a25bf51d 100644
--- a/src/main/java/com/thealgorithms/backtracking/ArrayCombination.java
+++ b/src/main/java/com/thealgorithms/backtracking/ArrayCombination.java
@@ -1,6 +1,7 @@
package com.thealgorithms.backtracking;
-import java.util.*;
+import java.util.List;
+import java.util.TreeSet;
/**
* Finds all permutations of 1...n of length k
diff --git a/src/main/java/com/thealgorithms/backtracking/Combination.java b/src/main/java/com/thealgorithms/backtracking/Combination.java
index 4b44a46d..3908da43 100644
--- a/src/main/java/com/thealgorithms/backtracking/Combination.java
+++ b/src/main/java/com/thealgorithms/backtracking/Combination.java
@@ -1,6 +1,9 @@
package com.thealgorithms.backtracking;
-import java.util.*;
+import java.util.Arrays;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.TreeSet;
/**
* Finds all permutations of given array
diff --git a/src/main/java/com/thealgorithms/backtracking/KnightsTour.java b/src/main/java/com/thealgorithms/backtracking/KnightsTour.java
index 6b3ec78a..694f4ad1 100644
--- a/src/main/java/com/thealgorithms/backtracking/KnightsTour.java
+++ b/src/main/java/com/thealgorithms/backtracking/KnightsTour.java
@@ -1,6 +1,8 @@
package com.thealgorithms.backtracking;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.List;
/*
* Problem Statement: -
diff --git a/src/main/java/com/thealgorithms/backtracking/MColoring.java b/src/main/java/com/thealgorithms/backtracking/MColoring.java
index 93b17941..d7d0a1d2 100644
--- a/src/main/java/com/thealgorithms/backtracking/MColoring.java
+++ b/src/main/java/com/thealgorithms/backtracking/MColoring.java
@@ -1,6 +1,10 @@
package com.thealgorithms.backtracking;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.LinkedList;
+import java.util.Queue;
+import java.util.Set;
/**
* @author Bama Charan Chhandogi (https://github.com/BamaCharanChhandogi)
diff --git a/src/main/java/com/thealgorithms/ciphers/AESEncryption.java b/src/main/java/com/thealgorithms/ciphers/AESEncryption.java
index 169fc10e..92c1f6f5 100644
--- a/src/main/java/com/thealgorithms/ciphers/AESEncryption.java
+++ b/src/main/java/com/thealgorithms/ciphers/AESEncryption.java
@@ -3,7 +3,12 @@ package com.thealgorithms.ciphers;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
-import javax.crypto.*;
+import javax.crypto.BadPaddingException;
+import javax.crypto.Cipher;
+import javax.crypto.IllegalBlockSizeException;
+import javax.crypto.KeyGenerator;
+import javax.crypto.NoSuchPaddingException;
+import javax.crypto.SecretKey;
import javax.crypto.spec.GCMParameterSpec;
/**
diff --git a/src/main/java/com/thealgorithms/conversions/BinaryToHexadecimal.java b/src/main/java/com/thealgorithms/conversions/BinaryToHexadecimal.java
index 011b60a9..9980d6de 100644
--- a/src/main/java/com/thealgorithms/conversions/BinaryToHexadecimal.java
+++ b/src/main/java/com/thealgorithms/conversions/BinaryToHexadecimal.java
@@ -1,6 +1,7 @@
package com.thealgorithms.conversions;
-import java.util.*;
+import java.util.HashMap;
+import java.util.Scanner;
/**
* Converts any Binary Number to a Hexadecimal Number
diff --git a/src/main/java/com/thealgorithms/conversions/RomanToInteger.java b/src/main/java/com/thealgorithms/conversions/RomanToInteger.java
index 19535df7..1338ba9b 100644
--- a/src/main/java/com/thealgorithms/conversions/RomanToInteger.java
+++ b/src/main/java/com/thealgorithms/conversions/RomanToInteger.java
@@ -1,6 +1,7 @@
package com.thealgorithms.conversions;
-import java.util.*;
+import java.util.HashMap;
+import java.util.Map;
public class RomanToInteger {
diff --git a/src/main/java/com/thealgorithms/datastructures/dynamicarray/DynamicArray.java b/src/main/java/com/thealgorithms/datastructures/dynamicarray/DynamicArray.java
index f6f0276e..e1697f44 100644
--- a/src/main/java/com/thealgorithms/datastructures/dynamicarray/DynamicArray.java
+++ b/src/main/java/com/thealgorithms/datastructures/dynamicarray/DynamicArray.java
@@ -1,6 +1,10 @@
package com.thealgorithms.datastructures.dynamicarray;
-import java.util.*;
+import java.util.Arrays;
+import java.util.ConcurrentModificationException;
+import java.util.Iterator;
+import java.util.NoSuchElementException;
+import java.util.Objects;
import java.util.function.Consumer;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
diff --git a/src/main/java/com/thealgorithms/datastructures/graphs/A_Star.java b/src/main/java/com/thealgorithms/datastructures/graphs/A_Star.java
index 6d02afbe..0da87614 100644
--- a/src/main/java/com/thealgorithms/datastructures/graphs/A_Star.java
+++ b/src/main/java/com/thealgorithms/datastructures/graphs/A_Star.java
@@ -3,7 +3,11 @@
*/
package com.thealgorithms.datastructures.graphs;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Comparator;
+import java.util.List;
+import java.util.PriorityQueue;
public class A_Star {
diff --git a/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java b/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java
index 3251b736..b4420b3e 100644
--- a/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java
+++ b/src/main/java/com/thealgorithms/datastructures/graphs/BellmanFord.java
@@ -1,6 +1,6 @@
package com.thealgorithms.datastructures.graphs;
-import java.util.*;
+import java.util.Scanner;
class BellmanFord /*
* Implementation of Bellman ford to detect negative cycles. Graph accepts
diff --git a/src/main/java/com/thealgorithms/datastructures/heaps/GenericHeap.java b/src/main/java/com/thealgorithms/datastructures/heaps/GenericHeap.java
index 23c26cfd..d546b7cc 100644
--- a/src/main/java/com/thealgorithms/datastructures/heaps/GenericHeap.java
+++ b/src/main/java/com/thealgorithms/datastructures/heaps/GenericHeap.java
@@ -1,6 +1,7 @@
package com.thealgorithms.datastructures.heaps;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.HashMap;
public class GenericHeap> {
diff --git a/src/main/java/com/thealgorithms/datastructures/lists/SkipList.java b/src/main/java/com/thealgorithms/datastructures/lists/SkipList.java
index 114a22d4..3309ab24 100644
--- a/src/main/java/com/thealgorithms/datastructures/lists/SkipList.java
+++ b/src/main/java/com/thealgorithms/datastructures/lists/SkipList.java
@@ -1,6 +1,11 @@
package com.thealgorithms.datastructures.lists;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+import java.util.Objects;
+import java.util.Random;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
diff --git a/src/main/java/com/thealgorithms/datastructures/trees/PostOrderTraversal.java b/src/main/java/com/thealgorithms/datastructures/trees/PostOrderTraversal.java
index f7afb60a..3820345b 100644
--- a/src/main/java/com/thealgorithms/datastructures/trees/PostOrderTraversal.java
+++ b/src/main/java/com/thealgorithms/datastructures/trees/PostOrderTraversal.java
@@ -1,6 +1,10 @@
package com.thealgorithms.datastructures.trees;
-import java.util.*;
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.Deque;
+import java.util.LinkedList;
+import java.util.List;
/**
* Given tree is traversed in a 'post-order' way: LEFT -> RIGHT -> ROOT.
diff --git a/src/main/java/com/thealgorithms/datastructures/trees/ZigzagTraversal.java b/src/main/java/com/thealgorithms/datastructures/trees/ZigzagTraversal.java
index d5bfd68e..50158b0f 100644
--- a/src/main/java/com/thealgorithms/datastructures/trees/ZigzagTraversal.java
+++ b/src/main/java/com/thealgorithms/datastructures/trees/ZigzagTraversal.java
@@ -1,6 +1,10 @@
package com.thealgorithms.datastructures.trees;
-import java.util.*;
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.Deque;
+import java.util.LinkedList;
+import java.util.List;
/**
* Given a binary tree.
diff --git a/src/main/java/com/thealgorithms/maths/DeterminantOfMatrix.java b/src/main/java/com/thealgorithms/maths/DeterminantOfMatrix.java
index 79b0dafa..53661511 100644
--- a/src/main/java/com/thealgorithms/maths/DeterminantOfMatrix.java
+++ b/src/main/java/com/thealgorithms/maths/DeterminantOfMatrix.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import java.util.*;
+import java.util.Scanner;
/*
* @author Ojasva Jain
diff --git a/src/main/java/com/thealgorithms/maths/KaprekarNumbers.java b/src/main/java/com/thealgorithms/maths/KaprekarNumbers.java
index d2283dc1..e46a3ac8 100644
--- a/src/main/java/com/thealgorithms/maths/KaprekarNumbers.java
+++ b/src/main/java/com/thealgorithms/maths/KaprekarNumbers.java
@@ -1,7 +1,8 @@
package com.thealgorithms.maths;
import java.math.BigInteger;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.List;
public class KaprekarNumbers {
diff --git a/src/main/java/com/thealgorithms/maths/KeithNumber.java b/src/main/java/com/thealgorithms/maths/KeithNumber.java
index 1db9f950..fdabbc16 100644
--- a/src/main/java/com/thealgorithms/maths/KeithNumber.java
+++ b/src/main/java/com/thealgorithms/maths/KeithNumber.java
@@ -1,6 +1,8 @@
package com.thealgorithms.maths;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Scanner;
class KeithNumber {
diff --git a/src/main/java/com/thealgorithms/maths/KrishnamurthyNumber.java b/src/main/java/com/thealgorithms/maths/KrishnamurthyNumber.java
index eacc75c2..f152b066 100644
--- a/src/main/java/com/thealgorithms/maths/KrishnamurthyNumber.java
+++ b/src/main/java/com/thealgorithms/maths/KrishnamurthyNumber.java
@@ -5,7 +5,9 @@ A number is a Krishnamurthy number if the sum of the factorials of the digits of
to the number itself. For example, 1, 2 and 145 are Krishnamurthy numbers. Krishnamurthy number is
also referred to as a Strong number.
*/
-import java.io.*;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
public class KrishnamurthyNumber {
diff --git a/src/main/java/com/thealgorithms/maths/LeastCommonMultiple.java b/src/main/java/com/thealgorithms/maths/LeastCommonMultiple.java
index f4f7c94a..66352568 100644
--- a/src/main/java/com/thealgorithms/maths/LeastCommonMultiple.java
+++ b/src/main/java/com/thealgorithms/maths/LeastCommonMultiple.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import java.util.*;
+import java.util.Scanner;
/**
* Is a common mathematics concept to find the smallest value number
diff --git a/src/main/java/com/thealgorithms/maths/MagicSquare.java b/src/main/java/com/thealgorithms/maths/MagicSquare.java
index 3bcede96..6e9f88a5 100644
--- a/src/main/java/com/thealgorithms/maths/MagicSquare.java
+++ b/src/main/java/com/thealgorithms/maths/MagicSquare.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import java.util.*;
+import java.util.Scanner;
/*A magic square of order n is an arrangement of distinct n^2 integers,in a square, such that the n
numbers in all rows, all columns, and both diagonals sum to the same constant. A magic square
diff --git a/src/main/java/com/thealgorithms/misc/RangeInSortedArray.java b/src/main/java/com/thealgorithms/misc/RangeInSortedArray.java
index d0d543d3..f70a443e 100644
--- a/src/main/java/com/thealgorithms/misc/RangeInSortedArray.java
+++ b/src/main/java/com/thealgorithms/misc/RangeInSortedArray.java
@@ -1,6 +1,6 @@
package com.thealgorithms.misc;
-import java.util.*;
+import java.util.Arrays;
public class RangeInSortedArray {
diff --git a/src/main/java/com/thealgorithms/misc/Sort012D.java b/src/main/java/com/thealgorithms/misc/Sort012D.java
index 2ffe31b9..a311dac4 100644
--- a/src/main/java/com/thealgorithms/misc/Sort012D.java
+++ b/src/main/java/com/thealgorithms/misc/Sort012D.java
@@ -1,6 +1,6 @@
package com.thealgorithms.misc;
-import java.util.*;
+import java.util.Scanner;
/**
* The array is divided into four sections: a[1..Lo-1] zeroes a[Lo..Mid-1] ones
diff --git a/src/main/java/com/thealgorithms/misc/Sparcity.java b/src/main/java/com/thealgorithms/misc/Sparcity.java
index 7eb5e589..10b6f580 100644
--- a/src/main/java/com/thealgorithms/misc/Sparcity.java
+++ b/src/main/java/com/thealgorithms/misc/Sparcity.java
@@ -1,6 +1,6 @@
package com.thealgorithms.misc;
-import java.util.*;
+import java.util.Scanner;
/*
*A matrix is sparse if many of its coefficients are zero (In general if 2/3rd of matrix elements
diff --git a/src/main/java/com/thealgorithms/misc/ThreeSumProblem.java b/src/main/java/com/thealgorithms/misc/ThreeSumProblem.java
index a232ad98..e5999313 100644
--- a/src/main/java/com/thealgorithms/misc/ThreeSumProblem.java
+++ b/src/main/java/com/thealgorithms/misc/ThreeSumProblem.java
@@ -1,6 +1,14 @@
package com.thealgorithms.misc;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.LinkedHashSet;
+import java.util.List;
+import java.util.Scanner;
+import java.util.Set;
public class ThreeSumProblem {
diff --git a/src/main/java/com/thealgorithms/misc/WordBoggle.java b/src/main/java/com/thealgorithms/misc/WordBoggle.java
index 5b3b8f86..b56b907d 100644
--- a/src/main/java/com/thealgorithms/misc/WordBoggle.java
+++ b/src/main/java/com/thealgorithms/misc/WordBoggle.java
@@ -1,6 +1,12 @@
package com.thealgorithms.misc;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
public class WordBoggle {
diff --git a/src/main/java/com/thealgorithms/others/Conway.java b/src/main/java/com/thealgorithms/others/Conway.java
index db1c102f..4ae4d741 100644
--- a/src/main/java/com/thealgorithms/others/Conway.java
+++ b/src/main/java/com/thealgorithms/others/Conway.java
@@ -1,6 +1,8 @@
package com.thealgorithms.others;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
public class Conway {
diff --git a/src/main/java/com/thealgorithms/others/Dijkstra.java b/src/main/java/com/thealgorithms/others/Dijkstra.java
index 3218c7bf..172e151f 100644
--- a/src/main/java/com/thealgorithms/others/Dijkstra.java
+++ b/src/main/java/com/thealgorithms/others/Dijkstra.java
@@ -15,7 +15,10 @@ package com.thealgorithms.others;
* https://rosettacode.org/wiki/Dijkstra%27s_algorithm#Java Also most of the
* comments are from RosettaCode.
*/
-import java.util.*;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.NavigableSet;
+import java.util.TreeSet;
public class Dijkstra {
diff --git a/src/main/java/com/thealgorithms/others/InsertDeleteInArray.java b/src/main/java/com/thealgorithms/others/InsertDeleteInArray.java
index 201c0ad2..d394ae10 100644
--- a/src/main/java/com/thealgorithms/others/InsertDeleteInArray.java
+++ b/src/main/java/com/thealgorithms/others/InsertDeleteInArray.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import java.util.*;
+import java.util.Scanner;
public class InsertDeleteInArray {
diff --git a/src/main/java/com/thealgorithms/others/KochSnowflake.java b/src/main/java/com/thealgorithms/others/KochSnowflake.java
index 04abc2dd..a87eedeb 100644
--- a/src/main/java/com/thealgorithms/others/KochSnowflake.java
+++ b/src/main/java/com/thealgorithms/others/KochSnowflake.java
@@ -1,6 +1,8 @@
package com.thealgorithms.others;
-import java.awt.*;
+import java.awt.BasicStroke;
+import java.awt.Color;
+import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
diff --git a/src/main/java/com/thealgorithms/others/Mandelbrot.java b/src/main/java/com/thealgorithms/others/Mandelbrot.java
index e60d5c02..15618495 100644
--- a/src/main/java/com/thealgorithms/others/Mandelbrot.java
+++ b/src/main/java/com/thealgorithms/others/Mandelbrot.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import java.awt.*;
+import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
diff --git a/src/main/java/com/thealgorithms/others/PageRank.java b/src/main/java/com/thealgorithms/others/PageRank.java
index fa85e970..faade993 100644
--- a/src/main/java/com/thealgorithms/others/PageRank.java
+++ b/src/main/java/com/thealgorithms/others/PageRank.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import java.util.*;
+import java.util.Scanner;
class PageRank {
diff --git a/src/main/java/com/thealgorithms/others/RotateMatriceBy90Degree.java b/src/main/java/com/thealgorithms/others/RotateMatriceBy90Degree.java
index e2b47f8e..c9ebc454 100644
--- a/src/main/java/com/thealgorithms/others/RotateMatriceBy90Degree.java
+++ b/src/main/java/com/thealgorithms/others/RotateMatriceBy90Degree.java
@@ -4,7 +4,7 @@ package com.thealgorithms.others;
* Given a matrix of size n x n We have to rotate this matrix by 90 Degree Here
* is the algorithm for this problem .
*/
-import java.util.*;
+import java.util.Scanner;
class Rotate_by_90_degree {
diff --git a/src/main/java/com/thealgorithms/others/TopKWords.java b/src/main/java/com/thealgorithms/others/TopKWords.java
index 43e71173..bb84d3f7 100644
--- a/src/main/java/com/thealgorithms/others/TopKWords.java
+++ b/src/main/java/com/thealgorithms/others/TopKWords.java
@@ -1,7 +1,13 @@
package com.thealgorithms.others;
-import java.io.*;
-import java.util.*;
+import java.io.FileInputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Scanner;
/* display the most frequent K words in the file and the times it appear
in the file – shown in order (ignore case and periods) */
diff --git a/src/main/java/com/thealgorithms/scheduling/PreemptivePriorityScheduling.java b/src/main/java/com/thealgorithms/scheduling/PreemptivePriorityScheduling.java
index 4523f682..f4ab5663 100644
--- a/src/main/java/com/thealgorithms/scheduling/PreemptivePriorityScheduling.java
+++ b/src/main/java/com/thealgorithms/scheduling/PreemptivePriorityScheduling.java
@@ -1,6 +1,9 @@
package com.thealgorithms.scheduling;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.List;
+import java.util.PriorityQueue;
/**
* Preemptive Priority Scheduling Algorithm
diff --git a/src/main/java/com/thealgorithms/searches/BreadthFirstSearch.java b/src/main/java/com/thealgorithms/searches/BreadthFirstSearch.java
index 77043a03..debab98c 100644
--- a/src/main/java/com/thealgorithms/searches/BreadthFirstSearch.java
+++ b/src/main/java/com/thealgorithms/searches/BreadthFirstSearch.java
@@ -1,7 +1,11 @@
package com.thealgorithms.searches;
import com.thealgorithms.datastructures.Node;
-import java.util.*;
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Optional;
+import java.util.Queue;
/**
* @author: caos321
diff --git a/src/main/java/com/thealgorithms/searches/HowManyTimesRotated.java b/src/main/java/com/thealgorithms/searches/HowManyTimesRotated.java
index dea0db37..350a3a6f 100644
--- a/src/main/java/com/thealgorithms/searches/HowManyTimesRotated.java
+++ b/src/main/java/com/thealgorithms/searches/HowManyTimesRotated.java
@@ -1,6 +1,6 @@
package com.thealgorithms.searches;
-import java.util.*;
+import java.util.Scanner;
/*
Problem Statement:
diff --git a/src/main/java/com/thealgorithms/searches/QuickSelect.java b/src/main/java/com/thealgorithms/searches/QuickSelect.java
index 7d3e2e34..f5ed7f71 100644
--- a/src/main/java/com/thealgorithms/searches/QuickSelect.java
+++ b/src/main/java/com/thealgorithms/searches/QuickSelect.java
@@ -1,6 +1,9 @@
package com.thealgorithms.searches;
-import java.util.*;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Objects;
/**
* An implementation of the Quickselect algorithm as described
diff --git a/src/main/java/com/thealgorithms/searches/RecursiveBinarySearch.java b/src/main/java/com/thealgorithms/searches/RecursiveBinarySearch.java
index 8860f338..6c6284e2 100644
--- a/src/main/java/com/thealgorithms/searches/RecursiveBinarySearch.java
+++ b/src/main/java/com/thealgorithms/searches/RecursiveBinarySearch.java
@@ -4,7 +4,7 @@
// Explanation:- https://www.tutorialspoint.com/java-program-for-binary-search-recursive
package com.thealgorithms.searches;
-import java.util.*;
+import java.util.Scanner;
// Create a SearchAlgorithm class with a generic type
abstract class SearchAlgorithm> {
diff --git a/src/main/java/com/thealgorithms/searches/UnionFind.java b/src/main/java/com/thealgorithms/searches/UnionFind.java
index 20f52478..fc5dbd80 100644
--- a/src/main/java/com/thealgorithms/searches/UnionFind.java
+++ b/src/main/java/com/thealgorithms/searches/UnionFind.java
@@ -1,6 +1,8 @@
package com.thealgorithms.searches;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
public class UnionFind {
diff --git a/src/main/java/com/thealgorithms/sorts/BubbleSort.java b/src/main/java/com/thealgorithms/sorts/BubbleSort.java
index 46f30291..6823c68d 100644
--- a/src/main/java/com/thealgorithms/sorts/BubbleSort.java
+++ b/src/main/java/com/thealgorithms/sorts/BubbleSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
/**
* @author Varun Upadhyay (https://github.com/varunu28)
* @author Podshivalov Nikita (https://github.com/nikitap492)
@@ -21,8 +19,8 @@ class BubbleSort implements SortAlgorithm {
for (int i = 1, size = array.length; i < size; ++i) {
boolean swapped = false;
for (int j = 0; j < size - i; ++j) {
- if (greater(array[j], array[j + 1])) {
- swap(array, j, j + 1);
+ if (SortUtils.greater(array[j], array[j + 1])) {
+ SortUtils.swap(array, j, j + 1);
swapped = true;
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/CircleSort.java b/src/main/java/com/thealgorithms/sorts/CircleSort.java
index c6a6d9ea..756534a8 100644
--- a/src/main/java/com/thealgorithms/sorts/CircleSort.java
+++ b/src/main/java/com/thealgorithms/sorts/CircleSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
public class CircleSort implements SortAlgorithm {
/* This method implements the circle sort
@@ -35,7 +33,7 @@ public class CircleSort implements SortAlgorithm {
while (low < high) {
if (array[low].compareTo(array[high]) > 0) {
- swap(array, low, high);
+ SortUtils.swap(array, low, high);
swapped = true;
}
low++;
@@ -43,7 +41,7 @@ public class CircleSort implements SortAlgorithm {
}
if (low == high && array[low].compareTo(array[high + 1]) > 0) {
- swap(array, low, high + 1);
+ SortUtils.swap(array, low, high + 1);
swapped = true;
}
diff --git a/src/main/java/com/thealgorithms/sorts/CombSort.java b/src/main/java/com/thealgorithms/sorts/CombSort.java
index 2341ac65..edf09a2e 100644
--- a/src/main/java/com/thealgorithms/sorts/CombSort.java
+++ b/src/main/java/com/thealgorithms/sorts/CombSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
/**
* Comb Sort algorithm implementation
*
@@ -52,9 +50,9 @@ class CombSort implements SortAlgorithm {
// Compare all elements with current gap
for (int i = 0; i < size - gap; i++) {
- if (less(arr[i + gap], arr[i])) {
+ if (SortUtils.less(arr[i + gap], arr[i])) {
// Swap arr[i] and arr[i+gap]
- swap(arr, i, i + gap);
+ SortUtils.swap(arr, i, i + gap);
swapped = true;
}
}
@@ -88,6 +86,6 @@ class CombSort implements SortAlgorithm {
ob.sort(arr);
System.out.println("sorted array");
- print(arr);
+ SortUtils.print(arr);
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/CountingSort.java b/src/main/java/com/thealgorithms/sorts/CountingSort.java
index 9a9b076b..e83271d9 100644
--- a/src/main/java/com/thealgorithms/sorts/CountingSort.java
+++ b/src/main/java/com/thealgorithms/sorts/CountingSort.java
@@ -4,7 +4,11 @@ import static com.thealgorithms.sorts.SortUtils.print;
import static java.util.stream.Collectors.toList;
import static java.util.stream.Collectors.toMap;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.TreeMap;
import java.util.stream.IntStream;
import java.util.stream.Stream;
diff --git a/src/main/java/com/thealgorithms/sorts/GnomeSort.java b/src/main/java/com/thealgorithms/sorts/GnomeSort.java
index 33a13d5b..9bef6a28 100644
--- a/src/main/java/com/thealgorithms/sorts/GnomeSort.java
+++ b/src/main/java/com/thealgorithms/sorts/GnomeSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
/**
* Implementation of gnome sort
*
@@ -15,10 +13,10 @@ public class GnomeSort implements SortAlgorithm {
int i = 1;
int j = 2;
while (i < arr.length) {
- if (less(arr[i - 1], arr[i])) {
+ if (SortUtils.less(arr[i - 1], arr[i])) {
i = j++;
} else {
- swap(arr, i - 1, i);
+ SortUtils.swap(arr, i - 1, i);
if (--i == 0) {
i = j++;
}
@@ -67,7 +65,7 @@ public class GnomeSort implements SortAlgorithm {
gnomeSort.sort(strings);
System.out.println("After sort : ");
- print(integers);
- print(strings);
+ SortUtils.print(integers);
+ SortUtils.print(strings);
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/InsertionSort.java b/src/main/java/com/thealgorithms/sorts/InsertionSort.java
index cd160866..285755c3 100644
--- a/src/main/java/com/thealgorithms/sorts/InsertionSort.java
+++ b/src/main/java/com/thealgorithms/sorts/InsertionSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
import java.util.function.Function;
class InsertionSort implements SortAlgorithm {
@@ -20,8 +18,8 @@ class InsertionSort implements SortAlgorithm {
public > T[] sort(T[] array, int lo, int hi) {
for (int i = lo; i < hi; i++) {
- for (int j = i; j > lo && less(array[j], array[j - 1]); j--) {
- swap(array, j, j - 1);
+ for (int j = i; j > lo && SortUtils.less(array[j], array[j - 1]); j--) {
+ SortUtils.swap(array, j, j - 1);
}
}
return array;
@@ -45,13 +43,13 @@ class InsertionSort implements SortAlgorithm {
// put the smallest element to the 0 position as a sentinel, which will allow us to avoid
// redundant comparisons like `j > 0` further
for (int i = 1; i < n; i++)
- if (less(array[i], array[minElemIndex])) minElemIndex = i;
- swap(array, 0, minElemIndex);
+ if (SortUtils.less(array[i], array[minElemIndex])) minElemIndex = i;
+ SortUtils.swap(array, 0, minElemIndex);
for (int i = 2; i < n; i++) {
int j = i;
T currentValue = array[i];
- while (less(currentValue, array[j - 1])) {
+ while (SortUtils.less(currentValue, array[j - 1])) {
array[j] = array[j - 1];
j--;
}
diff --git a/src/main/java/com/thealgorithms/sorts/LinkListSort.java b/src/main/java/com/thealgorithms/sorts/LinkListSort.java
index fb99439b..14f8394b 100644
--- a/src/main/java/com/thealgorithms/sorts/LinkListSort.java
+++ b/src/main/java/com/thealgorithms/sorts/LinkListSort.java
@@ -7,7 +7,8 @@
package com.thealgorithms.sorts;
-import java.util.*;
+import java.util.Arrays;
+import java.util.Scanner;
public class LinkListSort {
diff --git a/src/main/java/com/thealgorithms/sorts/MergeSortNoExtraSpace.java b/src/main/java/com/thealgorithms/sorts/MergeSortNoExtraSpace.java
index b9551523..f235d210 100644
--- a/src/main/java/com/thealgorithms/sorts/MergeSortNoExtraSpace.java
+++ b/src/main/java/com/thealgorithms/sorts/MergeSortNoExtraSpace.java
@@ -1,7 +1,7 @@
package com.thealgorithms.sorts;
-import java.util.*;
import java.util.Arrays;
+import java.util.Scanner;
/*This code implements the mergeSort algorithm without extra space
For understanding about mergesort visit :https://www.geeksforgeeks.org/merge-sort/
diff --git a/src/main/java/com/thealgorithms/sorts/PancakeSort.java b/src/main/java/com/thealgorithms/sorts/PancakeSort.java
index c5e59a02..cd3e8930 100644
--- a/src/main/java/com/thealgorithms/sorts/PancakeSort.java
+++ b/src/main/java/com/thealgorithms/sorts/PancakeSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
/**
* Implementation of pancake sort
*
@@ -18,12 +16,12 @@ public class PancakeSort implements SortAlgorithm {
T max = array[0];
int index = 0;
for (int j = 0; j < size - i; j++) {
- if (less(max, array[j])) {
+ if (SortUtils.less(max, array[j])) {
max = array[j];
index = j;
}
}
- flip(array, index, array.length - 1 - i);
+ SortUtils.flip(array, index, array.length - 1 - i);
}
return array;
}
@@ -62,6 +60,6 @@ public class PancakeSort implements SortAlgorithm {
PancakeSort pancakeSort = new PancakeSort();
System.out.println("After sorting:");
pancakeSort.sort(arr);
- print(arr);
+ SortUtils.print(arr);
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/PigeonholeSort.java b/src/main/java/com/thealgorithms/sorts/PigeonholeSort.java
index cd399fb7..9c0ab45b 100644
--- a/src/main/java/com/thealgorithms/sorts/PigeonholeSort.java
+++ b/src/main/java/com/thealgorithms/sorts/PigeonholeSort.java
@@ -1,8 +1,6 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
-import java.util.*;
+import java.util.ArrayList;
public class PigeonholeSort {
@@ -42,7 +40,7 @@ public class PigeonholeSort {
Integer[] arr = {8, 3, 2, 7, 4, 6, 8};
System.out.print("Unsorted order is : ");
- print(arr);
+ SortUtils.print(arr);
pigeonholeSort.sort(arr);
@@ -50,6 +48,6 @@ public class PigeonholeSort {
for (int i = 0; i < arr.length; i++) {
assert (arr[i]) <= (arr[i + 1]);
}
- print(arr);
+ SortUtils.print(arr);
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/QuickSort.java b/src/main/java/com/thealgorithms/sorts/QuickSort.java
index 2842b08a..3ebdd96c 100644
--- a/src/main/java/com/thealgorithms/sorts/QuickSort.java
+++ b/src/main/java/com/thealgorithms/sorts/QuickSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
/**
* @author Varun Upadhyay (https://github.com/varunu28)
* @author Podshivalov Nikita (https://github.com/nikitap492)
@@ -45,7 +43,7 @@ class QuickSort implements SortAlgorithm {
*/
private static > int randomPartition(T[] array, int left, int right) {
int randomIndex = left + (int) (Math.random() * (right - left + 1));
- swap(array, randomIndex, right);
+ SortUtils.swap(array, randomIndex, right);
return partition(array, left, right);
}
@@ -62,14 +60,14 @@ class QuickSort implements SortAlgorithm {
T pivot = array[mid];
while (left <= right) {
- while (less(array[left], pivot)) {
+ while (SortUtils.less(array[left], pivot)) {
++left;
}
- while (less(pivot, array[right])) {
+ while (SortUtils.less(pivot, array[right])) {
--right;
}
if (left <= right) {
- swap(array, left, right);
+ SortUtils.swap(array, left, right);
++left;
--right;
}
diff --git a/src/main/java/com/thealgorithms/sorts/ShellSort.java b/src/main/java/com/thealgorithms/sorts/ShellSort.java
index 5f41a544..37a50e85 100644
--- a/src/main/java/com/thealgorithms/sorts/ShellSort.java
+++ b/src/main/java/com/thealgorithms/sorts/ShellSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
public class ShellSort implements SortAlgorithm {
/**
@@ -25,7 +23,7 @@ public class ShellSort implements SortAlgorithm {
for (int i = gap; i < length; i++) {
int j;
T temp = array[i];
- for (j = i; j >= gap && less(temp, array[j - gap]); j -= gap) {
+ for (j = i; j >= gap && SortUtils.less(temp, array[j - gap]); j -= gap) {
array[j] = array[j - gap];
}
array[j] = temp;
@@ -43,6 +41,6 @@ public class ShellSort implements SortAlgorithm {
for (int i = 0; i < toSort.length - 1; ++i) {
assert toSort[i] <= toSort[i + 1];
}
- print(toSort);
+ SortUtils.print(toSort);
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/SimpleSort.java b/src/main/java/com/thealgorithms/sorts/SimpleSort.java
index 138ebb62..e68b9a87 100644
--- a/src/main/java/com/thealgorithms/sorts/SimpleSort.java
+++ b/src/main/java/com/thealgorithms/sorts/SimpleSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
public class SimpleSort implements SortAlgorithm {
@Override
@@ -10,7 +8,7 @@ public class SimpleSort implements SortAlgorithm {
for (int i = 0; i < LENGTH; i++) {
for (int j = i + 1; j < LENGTH; j++) {
- if (less(array[j], array[i])) {
+ if (SortUtils.less(array[j], array[i])) {
T element = array[j];
array[j] = array[i];
array[i] = element;
@@ -25,12 +23,12 @@ public class SimpleSort implements SortAlgorithm {
// ==== Int =======
Integer[] a = {3, 7, 45, 1, 33, 5, 2, 9};
System.out.print("unsorted: ");
- print(a);
+ SortUtils.print(a);
System.out.println();
new SimpleSort().sort(a);
System.out.print("sorted: ");
- print(a);
+ SortUtils.print(a);
System.out.println();
// ==== String =======
@@ -45,11 +43,11 @@ public class SimpleSort implements SortAlgorithm {
"pineapple",
};
System.out.print("unsorted: ");
- print(b);
+ SortUtils.print(b);
System.out.println();
new SimpleSort().sort(b);
System.out.print("sorted: ");
- print(b);
+ SortUtils.print(b);
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/SwapSort.java b/src/main/java/com/thealgorithms/sorts/SwapSort.java
index a626e511..b10728b6 100644
--- a/src/main/java/com/thealgorithms/sorts/SwapSort.java
+++ b/src/main/java/com/thealgorithms/sorts/SwapSort.java
@@ -1,7 +1,5 @@
package com.thealgorithms.sorts;
-import static com.thealgorithms.sorts.SortUtils.*;
-
/**
* The idea of Swap-Sort is to count the number m of smaller values (that are in
* A) from each element of an array A(1...n) and then swap the element with the
@@ -34,7 +32,7 @@ public class SwapSort implements SortAlgorithm {
private > int getSmallerElementCount(T[] array, int index) {
int counter = 0;
for (int i = 0; i < array.length; i++) {
- if (less(array[i], array[index])) {
+ if (SortUtils.less(array[i], array[index])) {
counter++;
}
}
@@ -46,12 +44,12 @@ public class SwapSort implements SortAlgorithm {
// ==== Int =======
Integer[] a = {3, 7, 45, 1, 33, 5, 2, 9};
System.out.print("unsorted: ");
- print(a);
+ SortUtils.print(a);
System.out.println();
new SwapSort().sort(a);
System.out.print("sorted: ");
- print(a);
+ SortUtils.print(a);
System.out.println();
// ==== String =======
@@ -66,11 +64,11 @@ public class SwapSort implements SortAlgorithm {
"pineapple",
};
System.out.print("unsorted: ");
- print(b);
+ SortUtils.print(b);
System.out.println();
new SwapSort().sort(b);
System.out.print("sorted: ");
- print(b);
+ SortUtils.print(b);
}
}
diff --git a/src/main/java/com/thealgorithms/sorts/TopologicalSort.java b/src/main/java/com/thealgorithms/sorts/TopologicalSort.java
index 1ba91827..ac375e2a 100644
--- a/src/main/java/com/thealgorithms/sorts/TopologicalSort.java
+++ b/src/main/java/com/thealgorithms/sorts/TopologicalSort.java
@@ -1,6 +1,10 @@
package com.thealgorithms.sorts;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.LinkedHashMap;
+import java.util.LinkedList;
/**
* The Topological Sorting algorithm linearly orders a DAG or Directed Acyclic Graph into
diff --git a/src/main/java/com/thealgorithms/stacks/DuplicateBrackets.java b/src/main/java/com/thealgorithms/stacks/DuplicateBrackets.java
index 7daf2e06..f78a2411 100644
--- a/src/main/java/com/thealgorithms/stacks/DuplicateBrackets.java
+++ b/src/main/java/com/thealgorithms/stacks/DuplicateBrackets.java
@@ -8,7 +8,8 @@ package com.thealgorithms.stacks;
// e.g.'
// ((a + b) + (c + d)) -> false
// (a + b) + ((c + d)) -> true
-import java.util.*;
+import java.util.Scanner;
+import java.util.Stack;
public class DuplicateBrackets {
diff --git a/src/main/java/com/thealgorithms/strings/Isomorphic.java b/src/main/java/com/thealgorithms/strings/Isomorphic.java
index 7a355dca..d7f436b0 100644
--- a/src/main/java/com/thealgorithms/strings/Isomorphic.java
+++ b/src/main/java/com/thealgorithms/strings/Isomorphic.java
@@ -1,6 +1,9 @@
package com.thealgorithms.strings;
-import java.util.*;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
public class Isomorphic {
diff --git a/src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java b/src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java
index 7ad9971e..963684e4 100644
--- a/src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java
+++ b/src/main/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumber.java
@@ -1,6 +1,8 @@
package com.thealgorithms.strings;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
public class LetterCombinationsOfPhoneNumber {
diff --git a/src/test/java/com/thealgorithms/backtracking/AllPathsFromSourceToTargetTest.java b/src/test/java/com/thealgorithms/backtracking/AllPathsFromSourceToTargetTest.java
index cf702cca..177163b0 100644
--- a/src/test/java/com/thealgorithms/backtracking/AllPathsFromSourceToTargetTest.java
+++ b/src/test/java/com/thealgorithms/backtracking/AllPathsFromSourceToTargetTest.java
@@ -1,8 +1,8 @@
package com.thealgorithms.backtracking;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertIterableEquals;
-import java.util.*;
+import java.util.List;
import org.junit.jupiter.api.Test;
public class AllPathsFromSourceToTargetTest {
diff --git a/src/test/java/com/thealgorithms/backtracking/ArrayCombinationTest.java b/src/test/java/com/thealgorithms/backtracking/ArrayCombinationTest.java
index 02527257..23fa5d54 100644
--- a/src/test/java/com/thealgorithms/backtracking/ArrayCombinationTest.java
+++ b/src/test/java/com/thealgorithms/backtracking/ArrayCombinationTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.backtracking;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
import java.util.List;
import java.util.TreeSet;
diff --git a/src/test/java/com/thealgorithms/backtracking/CombinationTest.java b/src/test/java/com/thealgorithms/backtracking/CombinationTest.java
index ed614827..44edc307 100644
--- a/src/test/java/com/thealgorithms/backtracking/CombinationTest.java
+++ b/src/test/java/com/thealgorithms/backtracking/CombinationTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.backtracking;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import java.util.TreeSet;
diff --git a/src/test/java/com/thealgorithms/backtracking/MColoringTest.java b/src/test/java/com/thealgorithms/backtracking/MColoringTest.java
index 606193b0..8b505abb 100644
--- a/src/test/java/com/thealgorithms/backtracking/MColoringTest.java
+++ b/src/test/java/com/thealgorithms/backtracking/MColoringTest.java
@@ -1,8 +1,8 @@
package com.thealgorithms.backtracking;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
-import java.util.*;
+import java.util.ArrayList;
import org.junit.jupiter.api.Test;
/**
diff --git a/src/test/java/com/thealgorithms/backtracking/MazeRecursionTest.java b/src/test/java/com/thealgorithms/backtracking/MazeRecursionTest.java
index 1464c522..edaca14a 100644
--- a/src/test/java/com/thealgorithms/backtracking/MazeRecursionTest.java
+++ b/src/test/java/com/thealgorithms/backtracking/MazeRecursionTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.backtracking;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/backtracking/PermutationTest.java b/src/test/java/com/thealgorithms/backtracking/PermutationTest.java
index b6c0400c..76a71482 100644
--- a/src/test/java/com/thealgorithms/backtracking/PermutationTest.java
+++ b/src/test/java/com/thealgorithms/backtracking/PermutationTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.backtracking;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Arrays;
import java.util.List;
diff --git a/src/test/java/com/thealgorithms/bitmanipulation/HighestSetBitTest.java b/src/test/java/com/thealgorithms/bitmanipulation/HighestSetBitTest.java
index 8dc61ae4..532f06f7 100644
--- a/src/test/java/com/thealgorithms/bitmanipulation/HighestSetBitTest.java
+++ b/src/test/java/com/thealgorithms/bitmanipulation/HighestSetBitTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.bitmanipulation;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/bitmanipulation/IndexOfRightMostSetBitTest.java b/src/test/java/com/thealgorithms/bitmanipulation/IndexOfRightMostSetBitTest.java
index 56e9108c..9bf80437 100644
--- a/src/test/java/com/thealgorithms/bitmanipulation/IndexOfRightMostSetBitTest.java
+++ b/src/test/java/com/thealgorithms/bitmanipulation/IndexOfRightMostSetBitTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.bitmanipulation;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/bitmanipulation/IsEvenTest.java b/src/test/java/com/thealgorithms/bitmanipulation/IsEvenTest.java
index 2e33539f..674b79e5 100644
--- a/src/test/java/com/thealgorithms/bitmanipulation/IsEvenTest.java
+++ b/src/test/java/com/thealgorithms/bitmanipulation/IsEvenTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.bitmanipulation;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/bitmanipulation/IsPowerTwoTest.java b/src/test/java/com/thealgorithms/bitmanipulation/IsPowerTwoTest.java
index 69546198..27bc93c3 100644
--- a/src/test/java/com/thealgorithms/bitmanipulation/IsPowerTwoTest.java
+++ b/src/test/java/com/thealgorithms/bitmanipulation/IsPowerTwoTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.bitmanipulation;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/bitmanipulation/NonRepeatingNumberFinderTest.java b/src/test/java/com/thealgorithms/bitmanipulation/NonRepeatingNumberFinderTest.java
index f0f7353a..c5031d97 100644
--- a/src/test/java/com/thealgorithms/bitmanipulation/NonRepeatingNumberFinderTest.java
+++ b/src/test/java/com/thealgorithms/bitmanipulation/NonRepeatingNumberFinderTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.bitmanipulation;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/bitmanipulation/NumbersDifferentSignsTest.java b/src/test/java/com/thealgorithms/bitmanipulation/NumbersDifferentSignsTest.java
index 31ab2482..13761ac2 100644
--- a/src/test/java/com/thealgorithms/bitmanipulation/NumbersDifferentSignsTest.java
+++ b/src/test/java/com/thealgorithms/bitmanipulation/NumbersDifferentSignsTest.java
@@ -5,7 +5,8 @@ package com.thealgorithms.bitmanipulation;
* @author Bama Charan Chhandogi
*/
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/bitmanipulation/ReverseBitsTest.java b/src/test/java/com/thealgorithms/bitmanipulation/ReverseBitsTest.java
index 730e3456..967a89a1 100644
--- a/src/test/java/com/thealgorithms/bitmanipulation/ReverseBitsTest.java
+++ b/src/test/java/com/thealgorithms/bitmanipulation/ReverseBitsTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.bitmanipulation;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/ciphers/BlowfishTest.java b/src/test/java/com/thealgorithms/ciphers/BlowfishTest.java
index e143850e..ef5e634f 100644
--- a/src/test/java/com/thealgorithms/ciphers/BlowfishTest.java
+++ b/src/test/java/com/thealgorithms/ciphers/BlowfishTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.ciphers;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/ciphers/CaesarTest.java b/src/test/java/com/thealgorithms/ciphers/CaesarTest.java
index 5fa81f95..7aa41c4c 100644
--- a/src/test/java/com/thealgorithms/ciphers/CaesarTest.java
+++ b/src/test/java/com/thealgorithms/ciphers/CaesarTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.ciphers;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/ciphers/DESTest.java b/src/test/java/com/thealgorithms/ciphers/DESTest.java
index 834f7e19..ddc643a6 100644
--- a/src/test/java/com/thealgorithms/ciphers/DESTest.java
+++ b/src/test/java/com/thealgorithms/ciphers/DESTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.ciphers;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/ciphers/PlayfairTest.java b/src/test/java/com/thealgorithms/ciphers/PlayfairTest.java
index 5562241b..fa497e46 100644
--- a/src/test/java/com/thealgorithms/ciphers/PlayfairTest.java
+++ b/src/test/java/com/thealgorithms/ciphers/PlayfairTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.ciphers;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/BinaryToHexadecimalTest.java b/src/test/java/com/thealgorithms/conversions/BinaryToHexadecimalTest.java
index 9e7f9f69..5cbdf39a 100644
--- a/src/test/java/com/thealgorithms/conversions/BinaryToHexadecimalTest.java
+++ b/src/test/java/com/thealgorithms/conversions/BinaryToHexadecimalTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java b/src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java
index 39a7f670..c7018dae 100644
--- a/src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java
+++ b/src/test/java/com/thealgorithms/conversions/BinaryToOctalTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java b/src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java
index de2cb7e2..1105f457 100644
--- a/src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java
+++ b/src/test/java/com/thealgorithms/conversions/DecimalToHexaDecimalTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/HexToOctTest.java b/src/test/java/com/thealgorithms/conversions/HexToOctTest.java
index d6a9b609..5924aa31 100644
--- a/src/test/java/com/thealgorithms/conversions/HexToOctTest.java
+++ b/src/test/java/com/thealgorithms/conversions/HexToOctTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/HexaDecimalToBinaryTest.java b/src/test/java/com/thealgorithms/conversions/HexaDecimalToBinaryTest.java
index a5abcb95..72a0a017 100644
--- a/src/test/java/com/thealgorithms/conversions/HexaDecimalToBinaryTest.java
+++ b/src/test/java/com/thealgorithms/conversions/HexaDecimalToBinaryTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/IntegerToRomanTest.java b/src/test/java/com/thealgorithms/conversions/IntegerToRomanTest.java
index 046b0075..04768d03 100644
--- a/src/test/java/com/thealgorithms/conversions/IntegerToRomanTest.java
+++ b/src/test/java/com/thealgorithms/conversions/IntegerToRomanTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/OctalToBinaryTest.java b/src/test/java/com/thealgorithms/conversions/OctalToBinaryTest.java
index 6c7fe870..86cf692c 100644
--- a/src/test/java/com/thealgorithms/conversions/OctalToBinaryTest.java
+++ b/src/test/java/com/thealgorithms/conversions/OctalToBinaryTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/OctalToDecimalTest.java b/src/test/java/com/thealgorithms/conversions/OctalToDecimalTest.java
index 4a4c6d84..6e17ea14 100644
--- a/src/test/java/com/thealgorithms/conversions/OctalToDecimalTest.java
+++ b/src/test/java/com/thealgorithms/conversions/OctalToDecimalTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/conversions/OctalToHexadecimalTest.java b/src/test/java/com/thealgorithms/conversions/OctalToHexadecimalTest.java
index 347f0eb8..f71732b2 100644
--- a/src/test/java/com/thealgorithms/conversions/OctalToHexadecimalTest.java
+++ b/src/test/java/com/thealgorithms/conversions/OctalToHexadecimalTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.conversions;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/buffers/CircularBufferTest.java b/src/test/java/com/thealgorithms/datastructures/buffers/CircularBufferTest.java
index 9158d0e1..9bc3b89c 100644
--- a/src/test/java/com/thealgorithms/datastructures/buffers/CircularBufferTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/buffers/CircularBufferTest.java
@@ -1,11 +1,18 @@
package com.thealgorithms.datastructures.buffers;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
-import java.util.concurrent.*;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+import java.util.concurrent.ThreadLocalRandom;
+import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicIntegerArray;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
diff --git a/src/test/java/com/thealgorithms/datastructures/crdt/GCounterTest.java b/src/test/java/com/thealgorithms/datastructures/crdt/GCounterTest.java
index f931e602..eb48c7d9 100644
--- a/src/test/java/com/thealgorithms/datastructures/crdt/GCounterTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/crdt/GCounterTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.datastructures.crdt;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/crdt/GSetTest.java b/src/test/java/com/thealgorithms/datastructures/crdt/GSetTest.java
index 74250ede..b4566aa9 100644
--- a/src/test/java/com/thealgorithms/datastructures/crdt/GSetTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/crdt/GSetTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.datastructures.crdt;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/crdt/LWWElementSetTest.java b/src/test/java/com/thealgorithms/datastructures/crdt/LWWElementSetTest.java
index 6fb227bd..36593d66 100644
--- a/src/test/java/com/thealgorithms/datastructures/crdt/LWWElementSetTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/crdt/LWWElementSetTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.datastructures.crdt;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/crdt/ORSetTest.java b/src/test/java/com/thealgorithms/datastructures/crdt/ORSetTest.java
index f12c38f1..f6d19a3e 100644
--- a/src/test/java/com/thealgorithms/datastructures/crdt/ORSetTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/crdt/ORSetTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.datastructures.crdt;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Set;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/crdt/PNCounterTest.java b/src/test/java/com/thealgorithms/datastructures/crdt/PNCounterTest.java
index 46c22a6e..4081b8ae 100644
--- a/src/test/java/com/thealgorithms/datastructures/crdt/PNCounterTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/crdt/PNCounterTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.datastructures.crdt;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/crdt/TwoPSetTest.java b/src/test/java/com/thealgorithms/datastructures/crdt/TwoPSetTest.java
index d81362e8..dfe392a0 100644
--- a/src/test/java/com/thealgorithms/datastructures/crdt/TwoPSetTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/crdt/TwoPSetTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.datastructures.crdt;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/graphs/BoruvkaAlgorithmTest.java b/src/test/java/com/thealgorithms/datastructures/graphs/BoruvkaAlgorithmTest.java
index b5f75f5e..579e2366 100644
--- a/src/test/java/com/thealgorithms/datastructures/graphs/BoruvkaAlgorithmTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/graphs/BoruvkaAlgorithmTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.datastructures.graphs;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.datastructures.graphs.BoruvkaAlgorithm.Graph;
import java.util.ArrayList;
diff --git a/src/test/java/com/thealgorithms/datastructures/graphs/HamiltonianCycleTest.java b/src/test/java/com/thealgorithms/datastructures/graphs/HamiltonianCycleTest.java
index 9890463d..ed7c886d 100644
--- a/src/test/java/com/thealgorithms/datastructures/graphs/HamiltonianCycleTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/graphs/HamiltonianCycleTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.datastructures.graphs;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/hashmap/HashMapCuckooHashingTest.java b/src/test/java/com/thealgorithms/datastructures/hashmap/HashMapCuckooHashingTest.java
index 85143200..14bddeae 100644
--- a/src/test/java/com/thealgorithms/datastructures/hashmap/HashMapCuckooHashingTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/hashmap/HashMapCuckooHashingTest.java
@@ -1,6 +1,9 @@
package com.thealgorithms.datastructures.hashmap;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assertions.fail;
import com.thealgorithms.datastructures.hashmap.hashing.HashMapCuckooHashing;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayListTest.java b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayListTest.java
index 621b353b..37e43d2a 100644
--- a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayListTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayListTest.java
@@ -1,6 +1,9 @@
package com.thealgorithms.datastructures.hashmap.hashing;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayTest.java b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayTest.java
index b4443da1..483e43bb 100644
--- a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/GenericHashMapUsingArrayTest.java
@@ -1,6 +1,9 @@
package com.thealgorithms.datastructures.hashmap.hashing;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MajorityElementTest.java b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MajorityElementTest.java
index df014510..49133ba5 100644
--- a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MajorityElementTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MajorityElementTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.datastructures.hashmap.hashing;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Collections;
diff --git a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MapTest.java b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MapTest.java
index ea6595cc..44551a8a 100644
--- a/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MapTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/hashmap/hashing/MapTest.java
@@ -1,6 +1,9 @@
package com.thealgorithms.datastructures.hashmap.hashing;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.Random;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/lists/QuickSortLinkedListTest.java b/src/test/java/com/thealgorithms/datastructures/lists/QuickSortLinkedListTest.java
index f4bcfd7f..c4113b78 100644
--- a/src/test/java/com/thealgorithms/datastructures/lists/QuickSortLinkedListTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/lists/QuickSortLinkedListTest.java
@@ -6,7 +6,8 @@ package com.thealgorithms.datastructures.lists;
* GitHub: https://github.com/Prabhat-Kumar-42
*/
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/lists/ReverseKGroupTest.java b/src/test/java/com/thealgorithms/datastructures/lists/ReverseKGroupTest.java
index 8273b890..c03f5b14 100644
--- a/src/test/java/com/thealgorithms/datastructures/lists/ReverseKGroupTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/lists/ReverseKGroupTest.java
@@ -5,7 +5,8 @@ package com.thealgorithms.datastructures.lists;
* Author: Bama Charan Chhandogi (https://github.com/BamaCharanChhandogi)
*/
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/lists/RotateSinglyLinkedListsTest.java b/src/test/java/com/thealgorithms/datastructures/lists/RotateSinglyLinkedListsTest.java
index 23780758..d3c020f8 100644
--- a/src/test/java/com/thealgorithms/datastructures/lists/RotateSinglyLinkedListsTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/lists/RotateSinglyLinkedListsTest.java
@@ -5,7 +5,8 @@ package com.thealgorithms.datastructures.lists;
* Author: Bama Charan Chhandogi (https://github.com/BamaCharanChhandogi)
*/
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java b/src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java
index bef02e62..30bd727e 100644
--- a/src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/lists/SinglyLinkedListTest.java
@@ -1,6 +1,9 @@
package com.thealgorithms.datastructures.lists;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java b/src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java
index 794b38d1..c572739f 100644
--- a/src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/lists/SkipListTest.java
@@ -1,8 +1,10 @@
package com.thealgorithms.datastructures.lists;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
-import java.util.*;
+import java.util.Arrays;
import java.util.stream.IntStream;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/datastructures/trees/LazySegmentTreeTest.java b/src/test/java/com/thealgorithms/datastructures/trees/LazySegmentTreeTest.java
index 6df22128..e8294a32 100644
--- a/src/test/java/com/thealgorithms/datastructures/trees/LazySegmentTreeTest.java
+++ b/src/test/java/com/thealgorithms/datastructures/trees/LazySegmentTreeTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.datastructures.trees;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/divideandconquer/BinaryExponentiationTest.java b/src/test/java/com/thealgorithms/divideandconquer/BinaryExponentiationTest.java
index bf1a60e8..ccada6e0 100644
--- a/src/test/java/com/thealgorithms/divideandconquer/BinaryExponentiationTest.java
+++ b/src/test/java/com/thealgorithms/divideandconquer/BinaryExponentiationTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.divideandconquer;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/divideandconquer/StrassenMatrixMultiplicationTest.java b/src/test/java/com/thealgorithms/divideandconquer/StrassenMatrixMultiplicationTest.java
index 8331d882..6f4d4a09 100644
--- a/src/test/java/com/thealgorithms/divideandconquer/StrassenMatrixMultiplicationTest.java
+++ b/src/test/java/com/thealgorithms/divideandconquer/StrassenMatrixMultiplicationTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.divideandconquer;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/dynamicprogramming/CatalanNumberTest.java b/src/test/java/com/thealgorithms/dynamicprogramming/CatalanNumberTest.java
index 8fbed852..a065bb8c 100644
--- a/src/test/java/com/thealgorithms/dynamicprogramming/CatalanNumberTest.java
+++ b/src/test/java/com/thealgorithms/dynamicprogramming/CatalanNumberTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.dynamicprogramming;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/dynamicprogramming/KnapsackMemoizationTest.java b/src/test/java/com/thealgorithms/dynamicprogramming/KnapsackMemoizationTest.java
index b68e7293..34c0ab09 100644
--- a/src/test/java/com/thealgorithms/dynamicprogramming/KnapsackMemoizationTest.java
+++ b/src/test/java/com/thealgorithms/dynamicprogramming/KnapsackMemoizationTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.dynamicprogramming;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/dynamicprogramming/PartitionProblemTest.java b/src/test/java/com/thealgorithms/dynamicprogramming/PartitionProblemTest.java
index d63c634c..098893f4 100644
--- a/src/test/java/com/thealgorithms/dynamicprogramming/PartitionProblemTest.java
+++ b/src/test/java/com/thealgorithms/dynamicprogramming/PartitionProblemTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.dynamicprogramming;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/dynamicprogramming/UniquePathsTests.java b/src/test/java/com/thealgorithms/dynamicprogramming/UniquePathsTests.java
index f6a86e72..f4e32f65 100644
--- a/src/test/java/com/thealgorithms/dynamicprogramming/UniquePathsTests.java
+++ b/src/test/java/com/thealgorithms/dynamicprogramming/UniquePathsTests.java
@@ -1,6 +1,7 @@
package com.thealgorithms.dynamicprogramming;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/dynamicprogramming/WildcardMatchingTest.java b/src/test/java/com/thealgorithms/dynamicprogramming/WildcardMatchingTest.java
index 8d91af66..56cd4ffe 100644
--- a/src/test/java/com/thealgorithms/dynamicprogramming/WildcardMatchingTest.java
+++ b/src/test/java/com/thealgorithms/dynamicprogramming/WildcardMatchingTest.java
@@ -1,5 +1,6 @@
package com.thealgorithms.dynamicprogramming;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/greedyalgorithms/ActivitySelectionTest.java b/src/test/java/com/thealgorithms/greedyalgorithms/ActivitySelectionTest.java
index 42263ac1..106237ca 100644
--- a/src/test/java/com/thealgorithms/greedyalgorithms/ActivitySelectionTest.java
+++ b/src/test/java/com/thealgorithms/greedyalgorithms/ActivitySelectionTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.greedyalgorithms;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/test/java/com/thealgorithms/greedyalgorithms/FractionalKnapsackTest.java b/src/test/java/com/thealgorithms/greedyalgorithms/FractionalKnapsackTest.java
index edbf0a09..e481128d 100644
--- a/src/test/java/com/thealgorithms/greedyalgorithms/FractionalKnapsackTest.java
+++ b/src/test/java/com/thealgorithms/greedyalgorithms/FractionalKnapsackTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.greedyalgorithms;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/greedyalgorithms/JobSequencingTest.java b/src/test/java/com/thealgorithms/greedyalgorithms/JobSequencingTest.java
index 8dd42bc7..b6791216 100644
--- a/src/test/java/com/thealgorithms/greedyalgorithms/JobSequencingTest.java
+++ b/src/test/java/com/thealgorithms/greedyalgorithms/JobSequencingTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.greedyalgorithms;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Collections;
diff --git a/src/test/java/com/thealgorithms/io/BufferedReaderTest.java b/src/test/java/com/thealgorithms/io/BufferedReaderTest.java
index c9872980..baccf319 100644
--- a/src/test/java/com/thealgorithms/io/BufferedReaderTest.java
+++ b/src/test/java/com/thealgorithms/io/BufferedReaderTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.io;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.ByteArrayInputStream;
import java.io.IOException;
diff --git a/src/test/java/com/thealgorithms/maths/AreaTest.java b/src/test/java/com/thealgorithms/maths/AreaTest.java
index 91fd0374..b28afb85 100644
--- a/src/test/java/com/thealgorithms/maths/AreaTest.java
+++ b/src/test/java/com/thealgorithms/maths/AreaTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertAll;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/AutomorphicNumberTest.java b/src/test/java/com/thealgorithms/maths/AutomorphicNumberTest.java
index 9571efff..0a366cd1 100644
--- a/src/test/java/com/thealgorithms/maths/AutomorphicNumberTest.java
+++ b/src/test/java/com/thealgorithms/maths/AutomorphicNumberTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/CollatzConjectureTest.java b/src/test/java/com/thealgorithms/maths/CollatzConjectureTest.java
index 118e8db8..4e88d1e9 100644
--- a/src/test/java/com/thealgorithms/maths/CollatzConjectureTest.java
+++ b/src/test/java/com/thealgorithms/maths/CollatzConjectureTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertIterableEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
diff --git a/src/test/java/com/thealgorithms/maths/DudeneyNumberTest.java b/src/test/java/com/thealgorithms/maths/DudeneyNumberTest.java
index 09c8c4b1..718a1def 100644
--- a/src/test/java/com/thealgorithms/maths/DudeneyNumberTest.java
+++ b/src/test/java/com/thealgorithms/maths/DudeneyNumberTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/FFTTest.java b/src/test/java/com/thealgorithms/maths/FFTTest.java
index dfb9ea53..696ab5a2 100644
--- a/src/test/java/com/thealgorithms/maths/FFTTest.java
+++ b/src/test/java/com/thealgorithms/maths/FFTTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/FastInverseSqrtTests.java b/src/test/java/com/thealgorithms/maths/FastInverseSqrtTests.java
index 6e664f54..a3416a6b 100644
--- a/src/test/java/com/thealgorithms/maths/FastInverseSqrtTests.java
+++ b/src/test/java/com/thealgorithms/maths/FastInverseSqrtTests.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/HarshadNumberTest.java b/src/test/java/com/thealgorithms/maths/HarshadNumberTest.java
index bea4e0a6..af1c459f 100644
--- a/src/test/java/com/thealgorithms/maths/HarshadNumberTest.java
+++ b/src/test/java/com/thealgorithms/maths/HarshadNumberTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/KaprekarNumbersTest.java b/src/test/java/com/thealgorithms/maths/KaprekarNumbersTest.java
index 52322e55..05e58cf8 100644
--- a/src/test/java/com/thealgorithms/maths/KaprekarNumbersTest.java
+++ b/src/test/java/com/thealgorithms/maths/KaprekarNumbersTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/LiouvilleLambdaFunctionTest.java b/src/test/java/com/thealgorithms/maths/LiouvilleLambdaFunctionTest.java
index a2be8a4c..a2763047 100644
--- a/src/test/java/com/thealgorithms/maths/LiouvilleLambdaFunctionTest.java
+++ b/src/test/java/com/thealgorithms/maths/LiouvilleLambdaFunctionTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/LongDivisionTest.java b/src/test/java/com/thealgorithms/maths/LongDivisionTest.java
index f0d702ef..24f757f8 100644
--- a/src/test/java/com/thealgorithms/maths/LongDivisionTest.java
+++ b/src/test/java/com/thealgorithms/maths/LongDivisionTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/MeansTest.java b/src/test/java/com/thealgorithms/maths/MeansTest.java
index fa17cea6..a1c07e25 100644
--- a/src/test/java/com/thealgorithms/maths/MeansTest.java
+++ b/src/test/java/com/thealgorithms/maths/MeansTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import java.util.ArrayList;
import java.util.LinkedHashSet;
diff --git a/src/test/java/com/thealgorithms/maths/MillerRabinPrimalityCheckTest.java b/src/test/java/com/thealgorithms/maths/MillerRabinPrimalityCheckTest.java
index 6e6fd491..d547cecf 100644
--- a/src/test/java/com/thealgorithms/maths/MillerRabinPrimalityCheckTest.java
+++ b/src/test/java/com/thealgorithms/maths/MillerRabinPrimalityCheckTest.java
@@ -1,30 +1,30 @@
package com.thealgorithms.maths;
-import static com.thealgorithms.maths.MillerRabinPrimalityCheck.*;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
class MillerRabinPrimalityCheckTest {
@Test
void testDeterministicMillerRabinForPrimes() {
- assertTrue(deterministicMillerRabin(2));
- assertTrue(deterministicMillerRabin(37));
- assertTrue(deterministicMillerRabin(123457));
- assertTrue(deterministicMillerRabin(6472601713L));
+ assertTrue(MillerRabinPrimalityCheck.deterministicMillerRabin(2));
+ assertTrue(MillerRabinPrimalityCheck.deterministicMillerRabin(37));
+ assertTrue(MillerRabinPrimalityCheck.deterministicMillerRabin(123457));
+ assertTrue(MillerRabinPrimalityCheck.deterministicMillerRabin(6472601713L));
}
@Test
void testDeterministicMillerRabinForNotPrimes() {
- assertFalse(deterministicMillerRabin(1));
- assertFalse(deterministicMillerRabin(35));
- assertFalse(deterministicMillerRabin(123453));
- assertFalse(deterministicMillerRabin(647260175));
+ assertFalse(MillerRabinPrimalityCheck.deterministicMillerRabin(1));
+ assertFalse(MillerRabinPrimalityCheck.deterministicMillerRabin(35));
+ assertFalse(MillerRabinPrimalityCheck.deterministicMillerRabin(123453));
+ assertFalse(MillerRabinPrimalityCheck.deterministicMillerRabin(647260175));
}
@Test
void testMillerRabinForPrimes() {
- assertTrue(millerRabin(11, 5));
- assertTrue(millerRabin(97, 5));
- assertTrue(millerRabin(6720589, 5));
- assertTrue(millerRabin(9549401549L, 5));
+ assertTrue(MillerRabinPrimalityCheck.millerRabin(11, 5));
+ assertTrue(MillerRabinPrimalityCheck.millerRabin(97, 5));
+ assertTrue(MillerRabinPrimalityCheck.millerRabin(6720589, 5));
+ assertTrue(MillerRabinPrimalityCheck.millerRabin(9549401549L, 5));
}
}
diff --git a/src/test/java/com/thealgorithms/maths/MobiusFunctionTest.java b/src/test/java/com/thealgorithms/maths/MobiusFunctionTest.java
index ddfac15d..f3a6514c 100644
--- a/src/test/java/com/thealgorithms/maths/MobiusFunctionTest.java
+++ b/src/test/java/com/thealgorithms/maths/MobiusFunctionTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/PascalTriangleTest.java b/src/test/java/com/thealgorithms/maths/PascalTriangleTest.java
index 4f5ec4ce..a1512aac 100644
--- a/src/test/java/com/thealgorithms/maths/PascalTriangleTest.java
+++ b/src/test/java/com/thealgorithms/maths/PascalTriangleTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/PerfectNumberTest.java b/src/test/java/com/thealgorithms/maths/PerfectNumberTest.java
index 4dc7c8ce..0433ba80 100644
--- a/src/test/java/com/thealgorithms/maths/PerfectNumberTest.java
+++ b/src/test/java/com/thealgorithms/maths/PerfectNumberTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/PowerUsingRecursionTest.java b/src/test/java/com/thealgorithms/maths/PowerUsingRecursionTest.java
index 14574ab3..705cc667 100644
--- a/src/test/java/com/thealgorithms/maths/PowerUsingRecursionTest.java
+++ b/src/test/java/com/thealgorithms/maths/PowerUsingRecursionTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/PrimeFactorizationTest.java b/src/test/java/com/thealgorithms/maths/PrimeFactorizationTest.java
index edc68448..abe6068c 100644
--- a/src/test/java/com/thealgorithms/maths/PrimeFactorizationTest.java
+++ b/src/test/java/com/thealgorithms/maths/PrimeFactorizationTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/PronicNumberTest.java b/src/test/java/com/thealgorithms/maths/PronicNumberTest.java
index e4ca04fd..5a31981b 100644
--- a/src/test/java/com/thealgorithms/maths/PronicNumberTest.java
+++ b/src/test/java/com/thealgorithms/maths/PronicNumberTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/SumWithoutArithmeticOperatorsTest.java b/src/test/java/com/thealgorithms/maths/SumWithoutArithmeticOperatorsTest.java
index 63f53bc6..1eab73c6 100644
--- a/src/test/java/com/thealgorithms/maths/SumWithoutArithmeticOperatorsTest.java
+++ b/src/test/java/com/thealgorithms/maths/SumWithoutArithmeticOperatorsTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/maths/VolumeTest.java b/src/test/java/com/thealgorithms/maths/VolumeTest.java
index 9692246b..1bdb3ae8 100644
--- a/src/test/java/com/thealgorithms/maths/VolumeTest.java
+++ b/src/test/java/com/thealgorithms/maths/VolumeTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.maths;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/misc/MapReduceTest.java b/src/test/java/com/thealgorithms/misc/MapReduceTest.java
index 213acad9..c79c4070 100644
--- a/src/test/java/com/thealgorithms/misc/MapReduceTest.java
+++ b/src/test/java/com/thealgorithms/misc/MapReduceTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.misc;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/misc/MedianOfMatrixtest.java b/src/test/java/com/thealgorithms/misc/MedianOfMatrixtest.java
index c1fa30d6..ec3a84b8 100644
--- a/src/test/java/com/thealgorithms/misc/MedianOfMatrixtest.java
+++ b/src/test/java/com/thealgorithms/misc/MedianOfMatrixtest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.misc;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/test/java/com/thealgorithms/others/ArrayLeftRotationTest.java b/src/test/java/com/thealgorithms/others/ArrayLeftRotationTest.java
index 431d8daa..355f107d 100644
--- a/src/test/java/com/thealgorithms/others/ArrayLeftRotationTest.java
+++ b/src/test/java/com/thealgorithms/others/ArrayLeftRotationTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/BestFitCPUTest.java b/src/test/java/com/thealgorithms/others/BestFitCPUTest.java
index 0a82ebdf..296cf1ca 100644
--- a/src/test/java/com/thealgorithms/others/BestFitCPUTest.java
+++ b/src/test/java/com/thealgorithms/others/BestFitCPUTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/test/java/com/thealgorithms/others/CountCharTest.java b/src/test/java/com/thealgorithms/others/CountCharTest.java
index 55e55b8d..660f2121 100644
--- a/src/test/java/com/thealgorithms/others/CountCharTest.java
+++ b/src/test/java/com/thealgorithms/others/CountCharTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/CountFriendsPairingTest.java b/src/test/java/com/thealgorithms/others/CountFriendsPairingTest.java
index 070812f1..f2e6944c 100644
--- a/src/test/java/com/thealgorithms/others/CountFriendsPairingTest.java
+++ b/src/test/java/com/thealgorithms/others/CountFriendsPairingTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.dynamicprogramming.CountFriendsPairing;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/FirstFitCPUTest.java b/src/test/java/com/thealgorithms/others/FirstFitCPUTest.java
index b726a746..57b6e189 100644
--- a/src/test/java/com/thealgorithms/others/FirstFitCPUTest.java
+++ b/src/test/java/com/thealgorithms/others/FirstFitCPUTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/test/java/com/thealgorithms/others/KadaneAlogrithmTest.java b/src/test/java/com/thealgorithms/others/KadaneAlogrithmTest.java
index ac2aa964..e5c0597d 100644
--- a/src/test/java/com/thealgorithms/others/KadaneAlogrithmTest.java
+++ b/src/test/java/com/thealgorithms/others/KadaneAlogrithmTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.dynamicprogramming.KadaneAlgorithm;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/LineSweepTest.java b/src/test/java/com/thealgorithms/others/LineSweepTest.java
index 20cf1cd7..af23885b 100644
--- a/src/test/java/com/thealgorithms/others/LineSweepTest.java
+++ b/src/test/java/com/thealgorithms/others/LineSweepTest.java
@@ -1,5 +1,7 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
public class LineSweepTest {
diff --git a/src/test/java/com/thealgorithms/others/LinkListSortTest.java b/src/test/java/com/thealgorithms/others/LinkListSortTest.java
index e0e258aa..100593b1 100644
--- a/src/test/java/com/thealgorithms/others/LinkListSortTest.java
+++ b/src/test/java/com/thealgorithms/others/LinkListSortTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.sorts.LinkListSort;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/MaximumSumOfDistinctSubarraysWithLengthKTest.java b/src/test/java/com/thealgorithms/others/MaximumSumOfDistinctSubarraysWithLengthKTest.java
index 49855161..26c57a1c 100644
--- a/src/test/java/com/thealgorithms/others/MaximumSumOfDistinctSubarraysWithLengthKTest.java
+++ b/src/test/java/com/thealgorithms/others/MaximumSumOfDistinctSubarraysWithLengthKTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/NewManShanksPrimeTest.java b/src/test/java/com/thealgorithms/others/NewManShanksPrimeTest.java
index 660562a5..3b657e44 100644
--- a/src/test/java/com/thealgorithms/others/NewManShanksPrimeTest.java
+++ b/src/test/java/com/thealgorithms/others/NewManShanksPrimeTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.dynamicprogramming.NewManShanksPrime;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/NextFitTest.java b/src/test/java/com/thealgorithms/others/NextFitTest.java
index 2de6b411..75fb3ab7 100644
--- a/src/test/java/com/thealgorithms/others/NextFitTest.java
+++ b/src/test/java/com/thealgorithms/others/NextFitTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/test/java/com/thealgorithms/others/PasswordGenTest.java b/src/test/java/com/thealgorithms/others/PasswordGenTest.java
index aa5303ad..57de329c 100644
--- a/src/test/java/com/thealgorithms/others/PasswordGenTest.java
+++ b/src/test/java/com/thealgorithms/others/PasswordGenTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/others/TestPrintMatrixInSpiralOrder.java b/src/test/java/com/thealgorithms/others/TestPrintMatrixInSpiralOrder.java
index 6cc65367..986e72ea 100644
--- a/src/test/java/com/thealgorithms/others/TestPrintMatrixInSpiralOrder.java
+++ b/src/test/java/com/thealgorithms/others/TestPrintMatrixInSpiralOrder.java
@@ -1,26 +1,26 @@
-package com.thealgorithms.others;
-
-import static org.junit.jupiter.api.Assertions.*;
-
-import java.util.List;
-import org.junit.jupiter.api.Test;
-
-public class TestPrintMatrixInSpiralOrder {
- @Test
- public void testOne() {
- int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
- var printClass = new PrintAMatrixInSpiralOrder();
- List res = printClass.print(matrix, matrix.length, matrix[0].length);
- List list = List.of(3, 4, 5, 6, 7, 12, 18, 27, 34, 33, 32, 31, 30, 23, 14, 8, 9, 10, 11, 17, 26, 25, 24, 15, 16);
- assertIterableEquals(res, list);
- }
-
- @Test
- public void testTwo() {
- int[][] matrix = {{2, 2}};
- var printClass = new PrintAMatrixInSpiralOrder();
- List res = printClass.print(matrix, matrix.length, matrix[0].length);
- List list = List.of(2, 2);
- assertIterableEquals(res, list);
- }
-}
+package com.thealgorithms.others;
+
+import static org.junit.jupiter.api.Assertions.assertIterableEquals;
+
+import java.util.List;
+import org.junit.jupiter.api.Test;
+
+public class TestPrintMatrixInSpiralOrder {
+ @Test
+ public void testOne() {
+ int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
+ var printClass = new PrintAMatrixInSpiralOrder();
+ List res = printClass.print(matrix, matrix.length, matrix[0].length);
+ List list = List.of(3, 4, 5, 6, 7, 12, 18, 27, 34, 33, 32, 31, 30, 23, 14, 8, 9, 10, 11, 17, 26, 25, 24, 15, 16);
+ assertIterableEquals(res, list);
+ }
+
+ @Test
+ public void testTwo() {
+ int[][] matrix = {{2, 2}};
+ var printClass = new PrintAMatrixInSpiralOrder();
+ List res = printClass.print(matrix, matrix.length, matrix[0].length);
+ List list = List.of(2, 2);
+ assertIterableEquals(res, list);
+ }
+}
diff --git a/src/test/java/com/thealgorithms/others/WorstFitCPUTest.java b/src/test/java/com/thealgorithms/others/WorstFitCPUTest.java
index 6f2a53b3..eb69f605 100644
--- a/src/test/java/com/thealgorithms/others/WorstFitCPUTest.java
+++ b/src/test/java/com/thealgorithms/others/WorstFitCPUTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.others;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Arrays;
diff --git a/src/test/java/com/thealgorithms/scheduling/PreemptivePrioritySchedulingTest.java b/src/test/java/com/thealgorithms/scheduling/PreemptivePrioritySchedulingTest.java
index 5cb3c624..61e2a2ac 100644
--- a/src/test/java/com/thealgorithms/scheduling/PreemptivePrioritySchedulingTest.java
+++ b/src/test/java/com/thealgorithms/scheduling/PreemptivePrioritySchedulingTest.java
@@ -5,9 +5,11 @@ package com.thealgorithms.scheduling;
* @author [Bama Charan Chhandogi](https://www.github.com/BamaCharanChhandogi)
*/
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
-import java.util.*;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
import org.junit.jupiter.api.Test;
class PreemptivePrioritySchedulingTest {
diff --git a/src/test/java/com/thealgorithms/scheduling/RRSchedulingTest.java b/src/test/java/com/thealgorithms/scheduling/RRSchedulingTest.java
index 700a174f..3da52660 100644
--- a/src/test/java/com/thealgorithms/scheduling/RRSchedulingTest.java
+++ b/src/test/java/com/thealgorithms/scheduling/RRSchedulingTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.scheduling;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import com.thealgorithms.devutils.entities.ProcessDetails;
import java.util.ArrayList;
diff --git a/src/test/java/com/thealgorithms/scheduling/SJFSchedulingTest.java b/src/test/java/com/thealgorithms/scheduling/SJFSchedulingTest.java
index ae31feb9..41cbe75a 100644
--- a/src/test/java/com/thealgorithms/scheduling/SJFSchedulingTest.java
+++ b/src/test/java/com/thealgorithms/scheduling/SJFSchedulingTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.scheduling;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.devutils.entities.ProcessDetails;
import java.util.ArrayList;
diff --git a/src/test/java/com/thealgorithms/searches/BinarySearch2dArrayTest.java b/src/test/java/com/thealgorithms/searches/BinarySearch2dArrayTest.java
index e5db2f74..ec834d78 100644
--- a/src/test/java/com/thealgorithms/searches/BinarySearch2dArrayTest.java
+++ b/src/test/java/com/thealgorithms/searches/BinarySearch2dArrayTest.java
@@ -3,7 +3,7 @@ package com.thealgorithms.searches;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
-import java.util.*;
+import java.util.Arrays;
import org.junit.jupiter.api.Test;
public class BinarySearch2dArrayTest {
diff --git a/src/test/java/com/thealgorithms/searches/BreadthFirstSearchTest.java b/src/test/java/com/thealgorithms/searches/BreadthFirstSearchTest.java
index 77562ecd..2a32a4dd 100644
--- a/src/test/java/com/thealgorithms/searches/BreadthFirstSearchTest.java
+++ b/src/test/java/com/thealgorithms/searches/BreadthFirstSearchTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.searches;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.datastructures.Node;
import java.util.List;
diff --git a/src/test/java/com/thealgorithms/searches/DepthFirstSearchTest.java b/src/test/java/com/thealgorithms/searches/DepthFirstSearchTest.java
index f85e9409..af21b570 100644
--- a/src/test/java/com/thealgorithms/searches/DepthFirstSearchTest.java
+++ b/src/test/java/com/thealgorithms/searches/DepthFirstSearchTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.searches;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import com.thealgorithms.datastructures.Node;
import java.util.List;
diff --git a/src/test/java/com/thealgorithms/searches/HowManyTimesRotatedTest.java b/src/test/java/com/thealgorithms/searches/HowManyTimesRotatedTest.java
index ac731b0f..7d52e9fb 100644
--- a/src/test/java/com/thealgorithms/searches/HowManyTimesRotatedTest.java
+++ b/src/test/java/com/thealgorithms/searches/HowManyTimesRotatedTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.searches;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/searches/KMPSearchTest.java b/src/test/java/com/thealgorithms/searches/KMPSearchTest.java
index a0250ba3..ab6a14fb 100644
--- a/src/test/java/com/thealgorithms/searches/KMPSearchTest.java
+++ b/src/test/java/com/thealgorithms/searches/KMPSearchTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.searches;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/searches/PerfectBinarySearchTest.java b/src/test/java/com/thealgorithms/searches/PerfectBinarySearchTest.java
index ca5829c5..6eab20f4 100644
--- a/src/test/java/com/thealgorithms/searches/PerfectBinarySearchTest.java
+++ b/src/test/java/com/thealgorithms/searches/PerfectBinarySearchTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.searches;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/searches/QuickSelectTest.java b/src/test/java/com/thealgorithms/searches/QuickSelectTest.java
index 405135ec..dd04c85b 100644
--- a/src/test/java/com/thealgorithms/searches/QuickSelectTest.java
+++ b/src/test/java/com/thealgorithms/searches/QuickSelectTest.java
@@ -1,8 +1,13 @@
package com.thealgorithms.searches;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
-import java.util.*;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
+import java.util.Random;
import java.util.stream.Collectors;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/searches/RecursiveBinarySearchTest.java b/src/test/java/com/thealgorithms/searches/RecursiveBinarySearchTest.java
index 4144efa5..0a2794f9 100644
--- a/src/test/java/com/thealgorithms/searches/RecursiveBinarySearchTest.java
+++ b/src/test/java/com/thealgorithms/searches/RecursiveBinarySearchTest.java
@@ -3,7 +3,7 @@
// Test file updated with JUnit tests
package com.thealgorithms.searches;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test; // Import the JUnit 5 Test annotation
diff --git a/src/test/java/com/thealgorithms/searches/TestSearchInARowAndColWiseSortedMatrix.java b/src/test/java/com/thealgorithms/searches/TestSearchInARowAndColWiseSortedMatrix.java
index 83e65621..014fb4bd 100644
--- a/src/test/java/com/thealgorithms/searches/TestSearchInARowAndColWiseSortedMatrix.java
+++ b/src/test/java/com/thealgorithms/searches/TestSearchInARowAndColWiseSortedMatrix.java
@@ -1,27 +1,27 @@
-package com.thealgorithms.searches;
-
-import static org.junit.jupiter.api.Assertions.*;
-
-import org.junit.jupiter.api.Test;
-
-public class TestSearchInARowAndColWiseSortedMatrix {
- @Test
- public void searchItem() {
- int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
-
- var test = new SearchInARowAndColWiseSortedMatrix();
- int[] res = test.search(matrix, 16);
- int[] expectedResult = {2, 2};
- assertArrayEquals(expectedResult, res);
- }
-
- @Test
- public void notFound() {
- int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
-
- var test = new SearchInARowAndColWiseSortedMatrix();
- int[] res = test.search(matrix, 96);
- int[] expectedResult = {-1, -1};
- assertArrayEquals(expectedResult, res);
- }
-}
+package com.thealgorithms.searches;
+
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+
+import org.junit.jupiter.api.Test;
+
+public class TestSearchInARowAndColWiseSortedMatrix {
+ @Test
+ public void searchItem() {
+ int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
+
+ var test = new SearchInARowAndColWiseSortedMatrix();
+ int[] res = test.search(matrix, 16);
+ int[] expectedResult = {2, 2};
+ assertArrayEquals(expectedResult, res);
+ }
+
+ @Test
+ public void notFound() {
+ int[][] matrix = {{3, 4, 5, 6, 7}, {8, 9, 10, 11, 12}, {14, 15, 16, 17, 18}, {23, 24, 25, 26, 27}, {30, 31, 32, 33, 34}};
+
+ var test = new SearchInARowAndColWiseSortedMatrix();
+ int[] res = test.search(matrix, 96);
+ int[] expectedResult = {-1, -1};
+ assertArrayEquals(expectedResult, res);
+ }
+}
diff --git a/src/test/java/com/thealgorithms/sorts/BinaryInsertionSortTest.java b/src/test/java/com/thealgorithms/sorts/BinaryInsertionSortTest.java
index 5261d6c6..349c3a2b 100644
--- a/src/test/java/com/thealgorithms/sorts/BinaryInsertionSortTest.java
+++ b/src/test/java/com/thealgorithms/sorts/BinaryInsertionSortTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/sorts/DutchNationalFlagSortTest.java b/src/test/java/com/thealgorithms/sorts/DutchNationalFlagSortTest.java
index 7c81aefc..8d3a4ac4 100644
--- a/src/test/java/com/thealgorithms/sorts/DutchNationalFlagSortTest.java
+++ b/src/test/java/com/thealgorithms/sorts/DutchNationalFlagSortTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/sorts/InsertionSortTest.java b/src/test/java/com/thealgorithms/sorts/InsertionSortTest.java
index 87a2c733..78744973 100644
--- a/src/test/java/com/thealgorithms/sorts/InsertionSortTest.java
+++ b/src/test/java/com/thealgorithms/sorts/InsertionSortTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.function.Function;
import org.junit.jupiter.api.BeforeEach;
diff --git a/src/test/java/com/thealgorithms/sorts/SelectionSortTest.java b/src/test/java/com/thealgorithms/sorts/SelectionSortTest.java
index 36470f86..a718f450 100644
--- a/src/test/java/com/thealgorithms/sorts/SelectionSortTest.java
+++ b/src/test/java/com/thealgorithms/sorts/SelectionSortTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/sorts/SortUtilsTest.java b/src/test/java/com/thealgorithms/sorts/SortUtilsTest.java
index 34a6b00d..591b5389 100644
--- a/src/test/java/com/thealgorithms/sorts/SortUtilsTest.java
+++ b/src/test/java/com/thealgorithms/sorts/SortUtilsTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.List;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/sorts/SortingAlgorithmTest.java b/src/test/java/com/thealgorithms/sorts/SortingAlgorithmTest.java
index 92e743cf..113bff2b 100644
--- a/src/test/java/com/thealgorithms/sorts/SortingAlgorithmTest.java
+++ b/src/test/java/com/thealgorithms/sorts/SortingAlgorithmTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertIterableEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import java.util.ArrayList;
import java.util.List;
diff --git a/src/test/java/com/thealgorithms/sorts/StrandSortTest.java b/src/test/java/com/thealgorithms/sorts/StrandSortTest.java
index 679a1131..4a0001a4 100644
--- a/src/test/java/com/thealgorithms/sorts/StrandSortTest.java
+++ b/src/test/java/com/thealgorithms/sorts/StrandSortTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import java.util.Arrays;
import java.util.LinkedList;
diff --git a/src/test/java/com/thealgorithms/sorts/TopologicalSortTest.java b/src/test/java/com/thealgorithms/sorts/TopologicalSortTest.java
index e299dad1..9fb0fc06 100644
--- a/src/test/java/com/thealgorithms/sorts/TopologicalSortTest.java
+++ b/src/test/java/com/thealgorithms/sorts/TopologicalSortTest.java
@@ -1,6 +1,8 @@
package com.thealgorithms.sorts;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertIterableEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import com.thealgorithms.sorts.TopologicalSort.BackEdgeException;
import com.thealgorithms.sorts.TopologicalSort.Graph;
diff --git a/src/test/java/com/thealgorithms/stacks/StackPostfixNotationTest.java b/src/test/java/com/thealgorithms/stacks/StackPostfixNotationTest.java
index 4857529e..a8d8e0d3 100644
--- a/src/test/java/com/thealgorithms/stacks/StackPostfixNotationTest.java
+++ b/src/test/java/com/thealgorithms/stacks/StackPostfixNotationTest.java
@@ -1,7 +1,8 @@
package com.thealgorithms.stacks;
import static java.util.Map.entry;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import java.util.Map;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/AlphabeticalTest.java b/src/test/java/com/thealgorithms/strings/AlphabeticalTest.java
index 3d240f2c..08323915 100644
--- a/src/test/java/com/thealgorithms/strings/AlphabeticalTest.java
+++ b/src/test/java/com/thealgorithms/strings/AlphabeticalTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/AnagramsTest.java b/src/test/java/com/thealgorithms/strings/AnagramsTest.java
index 2b56ef01..ba530cff 100644
--- a/src/test/java/com/thealgorithms/strings/AnagramsTest.java
+++ b/src/test/java/com/thealgorithms/strings/AnagramsTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/CharacterSameTest.java b/src/test/java/com/thealgorithms/strings/CharacterSameTest.java
index e4faee25..d91b5f2f 100644
--- a/src/test/java/com/thealgorithms/strings/CharacterSameTest.java
+++ b/src/test/java/com/thealgorithms/strings/CharacterSameTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/CheckVowelsTest.java b/src/test/java/com/thealgorithms/strings/CheckVowelsTest.java
index 74918929..713b53f0 100644
--- a/src/test/java/com/thealgorithms/strings/CheckVowelsTest.java
+++ b/src/test/java/com/thealgorithms/strings/CheckVowelsTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/HorspoolSearchTest.java b/src/test/java/com/thealgorithms/strings/HorspoolSearchTest.java
index f2faf49c..9649a89a 100644
--- a/src/test/java/com/thealgorithms/strings/HorspoolSearchTest.java
+++ b/src/test/java/com/thealgorithms/strings/HorspoolSearchTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/IsomorphicTest.java b/src/test/java/com/thealgorithms/strings/IsomorphicTest.java
index a51b0fe9..4601404c 100644
--- a/src/test/java/com/thealgorithms/strings/IsomorphicTest.java
+++ b/src/test/java/com/thealgorithms/strings/IsomorphicTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumberTest.java b/src/test/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumberTest.java
index c9b890f4..4ffbddcb 100644
--- a/src/test/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumberTest.java
+++ b/src/test/java/com/thealgorithms/strings/LetterCombinationsOfPhoneNumberTest.java
@@ -1,8 +1,9 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertTrue;
-import java.util.*;
+import java.util.Arrays;
+import java.util.List;
import org.junit.jupiter.api.Test;
public class LetterCombinationsOfPhoneNumberTest {
diff --git a/src/test/java/com/thealgorithms/strings/LowerTest.java b/src/test/java/com/thealgorithms/strings/LowerTest.java
index ebc72f3c..e0abb921 100644
--- a/src/test/java/com/thealgorithms/strings/LowerTest.java
+++ b/src/test/java/com/thealgorithms/strings/LowerTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/MyAtoiTest.java b/src/test/java/com/thealgorithms/strings/MyAtoiTest.java
index 6d27a8ac..45f91585 100644
--- a/src/test/java/com/thealgorithms/strings/MyAtoiTest.java
+++ b/src/test/java/com/thealgorithms/strings/MyAtoiTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/PangramTest.java b/src/test/java/com/thealgorithms/strings/PangramTest.java
index 7ad79b20..00ecb909 100644
--- a/src/test/java/com/thealgorithms/strings/PangramTest.java
+++ b/src/test/java/com/thealgorithms/strings/PangramTest.java
@@ -1,6 +1,7 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/RotationTest.java b/src/test/java/com/thealgorithms/strings/RotationTest.java
index 239366df..911ff87d 100644
--- a/src/test/java/com/thealgorithms/strings/RotationTest.java
+++ b/src/test/java/com/thealgorithms/strings/RotationTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/StringCompressionTest.java b/src/test/java/com/thealgorithms/strings/StringCompressionTest.java
index 4194cad0..bbd56c19 100644
--- a/src/test/java/com/thealgorithms/strings/StringCompressionTest.java
+++ b/src/test/java/com/thealgorithms/strings/StringCompressionTest.java
@@ -1,5 +1,5 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
diff --git a/src/test/java/com/thealgorithms/strings/UpperTest.java b/src/test/java/com/thealgorithms/strings/UpperTest.java
index 5c030efd..5413c77b 100644
--- a/src/test/java/com/thealgorithms/strings/UpperTest.java
+++ b/src/test/java/com/thealgorithms/strings/UpperTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/ValidParenthesesTest.java b/src/test/java/com/thealgorithms/strings/ValidParenthesesTest.java
index 13909e63..6b7e04e9 100644
--- a/src/test/java/com/thealgorithms/strings/ValidParenthesesTest.java
+++ b/src/test/java/com/thealgorithms/strings/ValidParenthesesTest.java
@@ -1,6 +1,6 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/com/thealgorithms/strings/WordLadderTest.java b/src/test/java/com/thealgorithms/strings/WordLadderTest.java
index 5b40df8b..4f1d07eb 100644
--- a/src/test/java/com/thealgorithms/strings/WordLadderTest.java
+++ b/src/test/java/com/thealgorithms/strings/WordLadderTest.java
@@ -1,8 +1,9 @@
package com.thealgorithms.strings;
-import static org.junit.jupiter.api.Assertions.*;
+import static org.junit.jupiter.api.Assertions.assertEquals;
-import java.util.*;
+import java.util.Arrays;
+import java.util.List;
import org.junit.jupiter.api.Test;
public class WordLadderTest {