Documentation
¶
Index ¶
- func ConvertZ(s string, numRows int) string
- func IsMatch(s string, p string) bool
- func IsValid(s string) bool
- func LengthOfLongestDistinctSubstring(s string) int
- func LetterCombinations(digits string) []string
- func LongestCommonPrefix(strs []string) string
- func LongestPalindrome(s string) string
- func Next(s string) []int
- func StrStr(haystack string, needle string) int
- func StrStrKMP(haystack string, needle string) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMatch ¶
IsMatch 正则匹配 leetcode10 todo: 10. 正则匹配 Level: High 给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 '.' 和 '*' 的正则表达式匹配。
'.' 匹配任意单个字符 '*' 匹配零个或多个前面的那一个元素 所谓匹配,是要涵盖 整个 字符串 s的,而不是部分字符串
func LengthOfLongestDistinctSubstring ¶
LengthOfLongestDistinctSubstring 最长不重复子串的长度 leetcode3 s = "abcabcbb" 3 s = "bbbbb" 1 s = "pwwkew" 3 "" 0
func LetterCombinations ¶
LetterCombinations 电话号码的字母组合 就是遍历排序组合啊 leetcode17 电话号码的字母组合
func LongestCommonPrefix ¶
LongestCommonPrefix 字符数组中的最长公共子串 leetcode14 字符数组中的最长公共子串
func Next ¶
Next len=m S: a a a b b a b PMT: 0 1 2 0 0 1 0 Partical matching table: 部分匹配表; 下面是变形, 只要在O(m)下完成 PMT 局部变量表的匹配; 当发现没有匹配的就可以查询这个表快速定位了; Next: -10 1 2 0 0 1 NextJ: 0 1 2 3 1 1 2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.