From 3e2580d014a0c2563c0bc07af49ea9218e9446ad Mon Sep 17 00:00:00 2001 From: VildanWW Date: Wed, 25 Nov 2026 01:44:25 +0500 Subject: [PATCH] Update brute_force_string_searching.cpp --- strings/brute_force_string_searching.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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