MCPcopy Index your code
hub / github.com/codingXiaxw/leetcode / main

Method main

algorithms/Java/implementStrStr.java:14–20  ·  view source on GitHub ↗

mplement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 返回needle在haystack中第一次出现的下标,这个题未免也太简单了吧!!!! 看了很多人的答案,发现这样做就可以了。。。 @param args

(String[] args)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

strStrMethod · 0.95

Tested by

no test coverage detected