File tree 1 file changed +9
-9
lines changed
src/main/java/com/thealgorithms/strings 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -200,15 +200,15 @@ private void setUpStartPoints(List<List<Integer>> positionByStringIndexValue) {
200
200
201
201
// Class to handle pattern position recording
202
202
private record PatternPositionRecorder (List <List <Integer >> positionByStringIndexValue ) {
203
- // Constructor to initialize the recorder with the position list
204
-
205
- /**
206
- * Records positions for a pattern when it's found in the input text and follows
207
- * output links to record positions of other patterns.
208
- *
209
- * @param parent The current node representing a character in the pattern trie.
210
- * @param currentPosition The current position in the input text.
211
- */
203
+ // Constructor to initialize the recorder with the position list
204
+
205
+ /**
206
+ * Records positions for a pattern when it's found in the input text and follows
207
+ * output links to record positions of other patterns.
208
+ *
209
+ * @param parent The current node representing a character in the pattern trie.
210
+ * @param currentPosition The current position in the input text.
211
+ */
212
212
public void recordPatternPositions (final Node parent , final int currentPosition ) {
213
213
// Check if the current node represents the end of a pattern
214
214
if (parent .getPatternInd () > -1 ) {
You can’t perform that action at this time.
0 commit comments