Update brute_force_string_searching.cpp

This commit is contained in:
VildanWW
2026-11-25 01:44:25 +05:00
committed by GitHub
parent b61d03dddd
commit 3e2580d014

View File

@@ -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