Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ naiveStringSearch.py
File
naiveStringSearch.py
strings/naiveStringSearch.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
this algorithm tries to find the pattern
from
every position of
3
the mainString
if
pattern is found
from
position i it add it to
4
the answer and does the same
for
position i+1
Callers
nothing calls this directly
Calls
1
naivePatternSearch
Function · 0.85
Tested by
no test coverage detected