归档 2018年3月

[LeetCode]Number of Subarrays with Bounded Maximum

题目描述:

LeetCode 795. Number of Subarrays with Bounded Maximum

We are given an array A of positive integers, and two positive integers L and R (L <= R).

Return the number of (contiguous, non-empty) subarrays such that the value of ...

继续阅读

[LeetCode]Number of Matching Subsequences

题目描述:

LeetCode 792. Number of Matching Subsequences

Given string S and a dictionary of words words, find the number of words[i] that is a subsequence of S.

Example :
Input: 
S = "abcde"
words = ["a", "bb", "acd", "ace"]
Output: 3
Explanation: There ...

继续阅读

每日归档

上个月

下个月

归档