Skip to content

Commit 9bec1dd

Browse files
Update 771. Jewels and Stones.py
1 parent 6443f96 commit 9bec1dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/easy/771. Jewels and Stones.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
class Solution:
22
def numJewelsInStones(self, jewels: str, stones: str) -> int:
3-
```
3+
'''
44
numJewelsInStone counts the number of jewels that are also stones
5-
jewels: string
6-
stones: string
7-
```
5+
jewels: string (only english letters, all characters unique, 1 <= jewels.length)
6+
stones: string (only english letters, stones.length <= 50)
7+
'''
88
jewels_list = list(jewels)
99
stones_list = list(stones)
1010
jewel_count = 0

0 commit comments

Comments
 (0)