Skip to content

Commit ecedd07

Browse files
author
Mrinal Chauhan
committed
fix: updated code to fix errors
1 parent f4f0a39 commit ecedd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/strings/Zalgorithm.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static List<Integer> findPatternOccurrences(String text, String pattern)
2222
int[] zArray = calculateZ(combined);
2323
List<Integer> occurrences = new ArrayList<>();
2424
int patternLength = pattern.length();
25-
//performing z algorithm
25+
// performing z algorithm
2626
for (int i = patternLength + 1; i < zArray.length; i++) {
2727
if (zArray[i] >= patternLength) {
2828
occurrences.add(i - patternLength - 1);

0 commit comments

Comments
 (0)