aboutsummaryrefslogtreecommitdiff
path: root/implement_strstr.cpp
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2025-02-03 15:37:19 -0700
committerJack Sangdahl <[email protected]>2025-02-03 15:37:19 -0700
commit55a67f776dd9acd258cae16ffb636751666b0f40 (patch)
tree601539de43809b70ceb8228a12c35883fa300b03 /implement_strstr.cpp
parenta0030873dabb517594ae0394350d6715071f7fb8 (diff)
downloadleetcode-55a67f776dd9acd258cae16ffb636751666b0f40.tar.gz
leetcode-55a67f776dd9acd258cae16ffb636751666b0f40.zip
chore: Remove incomplete solutions
Diffstat (limited to 'implement_strstr.cpp')
-rw-r--r--implement_strstr.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/implement_strstr.cpp b/implement_strstr.cpp
deleted file mode 100644
index 4c888c2..0000000
--- a/implement_strstr.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-#include "leetcode.h"
-
-class Solution {
-public:
- int strStr(string haystack, string needle) {
- int m = haystack.size(), n = needle.size();
- for (int i = 0; i <= m - n; i++) {
- int j;
- for (j = 0; j < n; j++)
- if (haystack[i + j] != needle[j])
- break;
- if (j == n)
- return i;
- }
- return -1;
- }
-};
-
-int main() {}