MCPcopy Create free account
hub / github.com/Aloxaf/LeetCode-Rust / str_str_bf

Method str_str_bf

src/implement_strstr.rs:10–23  ·  view source on GitHub ↗

发现暴力也能 0ms 过, 还以为要 KMP. 想想也是....毕竟是简单题

(haystack: String, needle: String)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected