
LeetCode Weekly Contest 101
文章平均质量分 79
杨领well
君子食无求饱,居无求安,敏于事而慎于言,就有道而正焉。
展开
-
LeetCode:Weekly Contest 101
LeetCode:Weekly Contest 101 题目描述 1. LeetCode: 900. RLE Iterator 题解 2. LeetCode: 901. Online Stock Span 题解 3. LeetCode: 902. Numbers At Most N Given Digit Set 题解 4. LeetCode: 903. Valid Permutat...原创 2018-09-09 17:52:36 · 387 阅读 · 0 评论 -
LeetCode: 900. RLE Iterator
LeetCode: 900. RLE Iterator 题目描述 Write an iterator that iterates through a run-length encoded sequence. The iterator is initialized by RLEIterator(int[] A), where A is a run-length encoding of some...原创 2018-09-09 18:00:57 · 484 阅读 · 0 评论 -
LeetCode: 901. Online Stock Span
LeetCode: 901. Online Stock Span 解题思路 Write a class StockSpanner which collects daily price quotes for some stock, and returns the span of that stock’s price for the current day. The span of the st...原创 2018-09-09 18:20:25 · 519 阅读 · 0 评论 -
LeetCode: 902. Numbers At Most N Given Digit Set
LeetCode: 902. Numbers At Most N Given Digit Set 题目描述 We have a sorted set of digits D, a non-empty subset of {'1','2','3','4','5','6','7','8','9'}. (Note that '0' is not included.) Now, we write ...原创 2018-09-09 18:34:23 · 592 阅读 · 0 评论 -
LeetCode: 903. Valid Permutations for DI Sequence
LeetCode: 903. Valid Permutations for DI Sequence 题目描述 We are given S, a length n string of characters from the set {'D', 'I'}. (These letters stand for “decreasing” and “increasing”.) A valid perm...转载 2018-09-10 08:05:24 · 1883 阅读 · 0 评论