这个可以在递归的时候维护一个map,表示 map[strIndex_patternIndex]如果遍历过了就需要再次重复遍历可以避免超时
点赞

相关推荐

点赞 评论 收藏
分享
牛客网
牛客企业服务