2085. Count Common Words With One Occurrence
2085. Count Common Words With One Occurrence
1 | Given two string arrays words1 and words2, return the number of strings that appear |
难度 : Easy
1 | Given two string arrays words1 and words2, return the number of strings that appear |
难度 : Easy
1 | Alice and Bob take turns playing a game, with Alice starting first. |
难度 : Hard
1 | There are n houses evenly lined up on the street, and each house is beautifully painted. |
Example 1:
1 | Given a root node reference of a BST and a key, delete the node with the given key in the BST. Return the root node |
Example 1:1
2
3
4
5Input: root = [5,3,6,2,4,null,7], key = 3
Output: [5,4,6,2,null,null,7]
Explanation: Given key to delete is 3. So we find the node with value 3 and delete it.
One valid answer is [5,4,6,2,null,null,7], shown in the above BST.
Please notice that another valid answer is [5,2,6,null,4,null,7] and it's also accepted.