摘要: 792. Number of Matching Subsequences Inverted Index + Binary Search Brute Force 会 TLE,时间复杂度为 O(S*n + Σwords[i])。 可以对S中每个字符建立一个vector,保存其下标位置。这样就可以通过二分 阅读全文
posted @ 2019-07-05 07:58 約束の空 阅读(421) 评论(0) 推荐(0)