标签归档: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  ...

继续阅读