Skip to content

Commit 31f967b

Browse files
committed
Fix
1 parent 613d552 commit 31f967b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/thealgorithms/stacks/SortStack.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
* This algorithm is implemented using only recursion and the original stack,
99
* without utilizing any additional data structures apart from the stack itself.
1010
*/
11-
public class SortStack {
11+
public final class SortStack {
12+
private SortStack() {
13+
}
1214

1315
/**
1416
* Sorts the given stack in ascending order using recursion.

0 commit comments

Comments
 (0)