Skip to content

Commit 335732e

Browse files
Merge branch 'master' into add-valid-parentheses
2 parents 7a68d2e + e841d73 commit 335732e

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
<plugin>
120120
<groupId>com.github.spotbugs</groupId>
121121
<artifactId>spotbugs-maven-plugin</artifactId>
122-
<version>4.9.8.1</version>
122+
<version>4.9.8.2</version>
123123
<configuration>
124124
<excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile>
125125
<includeTests>true</includeTests>

src/main/java/com/thealgorithms/backtracking/Combination.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import java.util.TreeSet;
88

99
/**
10-
* Finds all permutations of given array
11-
* @author Alan Piao (<a href="https://github.com/cpiao3">git-Alan Piao</a>)
10+
* Finds all combinations of a given array using backtracking algorithm * @author Alan Piao (<a href="https://github.com/cpiao3">git-Alan Piao</a>)
1211
*/
1312
public final class Combination {
1413
private Combination() {

src/main/java/com/thealgorithms/maths/Area.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public static double surfaceAreaCylinder(final double radius, final double heigh
9696
throw new IllegalArgumentException(POSITIVE_RADIUS);
9797
}
9898
if (height <= 0) {
99-
throw new IllegalArgumentException(POSITIVE_RADIUS);
99+
throw new IllegalArgumentException(POSITIVE_HEIGHT);
100100
}
101101
return 2 * (Math.PI * radius * radius + Math.PI * radius * height);
102102
}

src/main/java/com/thealgorithms/maths/Perimeter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static float perimeterRegularPolygon(int n, float side) {
2727
* @param side2 for length of side 2
2828
* @param side3 for length of side 3
2929
* @param sides for length of remaining sides
30-
* @return Perimeter of given trapezoid.
30+
* @return Perimeter of given irregular polygon.
3131
*/
3232
public static float perimeterIrregularPolygon(float side1, float side2, float side3, float... sides) {
3333
float perimeter = side1 + side2 + side3;

0 commit comments

Comments
 (0)