mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-11-28 06:33:20 +08:00
Update brute_force_string_searching.cpp
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
* @brief String pattern search - brute force
|
||||
* @details
|
||||
* Finds the first matching substring in the text, otherwise returns -1.
|
||||
* Time complexity: O(n * m), Space complexity: O(1).
|
||||
* Time complexity: O(n * m), Space complexity: O(m), where n is the length of the text and m is the length of the pattern.
|
||||
*/
|
||||
|
||||
#include <cassert> /// For assert
|
||||
|
||||
Reference in New Issue
Block a user