归档 2018年5月

[LeetCode]Masking Personal Information

题目描述:

LeetCode 831. Masking Personal Information

We are given a personal information string S, which may represent either an email address or a phone number.

We would like to mask this personal information according to the following rules:

1. Email address:

We define a  ...

继续阅读

[LeetCode]Positions of Large Groups

题目描述:

LeetCode 830. Positions of Large Groups

In a string S of lowercase letters, these letters form consecutive groups of the same character.

For example, a string like S = "abbxxxxzyy" has the groups "a", "bb", "xxxx", "z" and "yy".

Call ...

继续阅读

每日归档

上个月

下个月

归档