摘要: 问题: 给定一个数组A,求得连续元素组成子数组最大值在L和R之间的子数组个数。 Example : Input: A = [2, 1, 4, 3] L = 2 R = 3 Output: 3 Explanation: There are three subarrays that meet the r 阅读全文
posted @ 2020-05-10 19:12 habibah_chang 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 问题: 给定一个字符串S,和一个词组集合words,返回words里的字符串为S的不连续字串的个数。 Example : Input: S = "abcde" words = ["a", "bb", "acd", "ace"] Output: 3 Explanation: There are thr 阅读全文
posted @ 2020-05-10 15:37 habibah_chang 阅读(122) 评论(0) 推荐(0) 编辑