归档 2016年12月

LeetCode Weekly Contest 11解题报告

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

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

题解列表:

LeetCode 434. Number of Segments in a String

LeetCode 469. Convex Polygon

LeetCode 467. Unique Substrings in Wraparound String

LeetCode 466. Count The Repetitions

[LeetCode]Unique Substrings in Wraparound String

题目描述:

LeetCode 467. Unique Substrings in Wraparound String

Consider the string s to be the infinite wraparound string of "abcdefghijklmnopqrstuvwxyz", so s will look like this: "...zabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd....".

Now we have another string p. Your job is to find ...

继续阅读

[LeetCode]Number of Segments in a String

题目描述:

LeetCode 434. Number of Segments in a String

Count the number of segments in a string, where a segment is defined to be a contiguous sequence of non-space characters.

For example,

Input: "Hello, my name is John"

Output: 5 ...

继续阅读

每日归档

上个月

下个月

归档