diff --git a/strings/brute_force_string_searching.cpp b/strings/brute_force_string_searching.cpp index a53ae4e72..bfce31826 100644 --- a/strings/brute_force_string_searching.cpp +++ b/strings/brute_force_string_searching.cpp @@ -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 /// For assert