Created
January 30, 2021 01:39
-
-
Save mumunuu/86e8cfa4a57b1363aa3fc2be0bebb1dc to your computer and use it in GitHub Desktop.
algorithm(leetcode) Implement strStr()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func strStr(haystack string, needle string) int { | |
return strings.Index(haystack, needle) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment