kmp 算法

 //https://blog.csdn.net/x__1998/article/details/79951598
    func gethexLong(_ str :String) -> [Int] {
        var next :[Int] = []
        
        for i  in 0.. Bool {
       
     let next = self.gethexLong(pStr)
        var j = 0
        var count = 0 //一共可以匹配的字符串个数
        for  i  in 0..

你可能感兴趣的:(kmp 算法)