📜 Scroll Reader Arena

Scan through text with a lens to find pattern matches

Text T:
Pattern P:
📖 Text (T)
🔍
🎯 Pattern (P) at position 0
Text Index (i)
0
Pattern Index (j)
0
Comparisons
0
Matches Found
0
✨ Pattern Found at Positions
-
🔮 Naive Pattern Search Algorithm - O(n*m)
for i = 0 to n - m:
j = 0
while j < m and T[i+j] == P[j]:
j++ // Match, continue
if j == m:
found at position i // Full match!