归档 2018

[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 ...

继续阅读

LeetCode Weekly Contest 73解题报告

LeetCode Weekly Contest 73是LeetCode举办的第七十七场正式周赛,共4道题目,比赛时长1.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-73/

题解列表:

LeetCode 788. Rotated Digits

LeetCode 789. Escape The Ghosts

LeetCode 791. Custom Sort String

LeetCode 790. Domino and Tromino Tiling

每月存档

去年

明年