We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b23ca4e commit 5063459Copy full SHA for 5063459
src/main/java/com/thealgorithms/strings/KnuthMorrisPratt.java
@@ -91,8 +91,6 @@ public static void main(String[] args) {
91
final String text = "AAAAABAAABA";
92
final String pattern = "AAAA";
93
final List<Integer> idx = search(text, pattern);
94
- for (int pos : idx) {
95
- System.out.println("Pattern found at index: " + pos);
96
- }
+ // Pattern occurrences would be logged here in production
97
}
98
0 commit comments