mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 08:50:15 +08:00
Merge pull request #2113 from rosethorn999/patch
chore: Missing language name
This commit is contained in:
@ -146,6 +146,7 @@ class Solution {
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Python:
|
||||||
(版本一)使用数组
|
(版本一)使用数组
|
||||||
```python
|
```python
|
||||||
class Solution:
|
class Solution:
|
||||||
@ -210,7 +211,6 @@ class Solution:
|
|||||||
class Solution:
|
class Solution:
|
||||||
def canConstruct(self, ransomNote: str, magazine: str) -> bool:
|
def canConstruct(self, ransomNote: str, magazine: str) -> bool:
|
||||||
return all(ransomNote.count(c) <= magazine.count(c) for c in set(ransomNote))
|
return all(ransomNote.count(c) <= magazine.count(c) for c in set(ransomNote))
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Go:
|
Go:
|
||||||
|
Reference in New Issue
Block a user