MCPcopy Create free account
hub / github.com/TheAlgorithms/C-Plus-Plus / brute_force

Function brute_force

strings/brute_force_string_searching.cpp:21–35  ·  view source on GitHub ↗

* Find a pattern in a string by comparing the pattern to every substring. * @param text Any string that might contain the pattern. * @param pattern String that we are searching for. * @return Index where the pattern starts in the text * @return -1 if the pattern was not found. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected