标签归档:leetcode

RSS feed of leetcode

[LeetCode]Backspace String Compare

题目描述:

LeetCode 844. Backspace String Compare

Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.

Example 1:

Input: S = "ab#c", T = "ad#c"
Output: true
Explanation ...

继续阅读

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

继续阅读