1. 排序,贪婪 2. 只想到遍历 3. kmp求next数组,从后往前,next[index]-next[[nextindex]] == index - next[index]则+1 (不确定) 4. leetcode原题
点赞 1

相关推荐

牛客网
牛客企业服务