带翅膀的猫

时光荏苒，我们一直都在

• 「LeetCode刷题（Easy Rank）：819. Most Common Word」

3月前  •   •   •   29  •

Question:

Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words.  It is guaranteed there is at least one word that isn’t banned, and that the answer is unique.

• 「LeetCode刷题（Easy Rank）：804. Unique Morse Code Words」

3月前  •   •   •   24  •

Question:

International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-""b" maps to "-...""c" maps to "-.-.", and so on.

• 「LeetCode刷题（Easy Rank）：788. Rotated Digits」

3月前  •   •   •   20  •

Question:

X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X.  Each digit must be rotated – we cannot choose to leave it alone.

• 「LeetCode刷题（Easy Rank）：709. To Lower Case」

3月前  •   •   •   20  •

Question:

Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.

• 「LeetCode刷题（Easy Rank）：696. Count Binary Substrings」

3月前  •   •   •   19  •

Question:

Give a string , count the number of non-empty (contiguous) substrings that have the same number of 0’s and 1’s, and all the 0’s and all the 1’s in these substrings are grouped consecutively.