mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 23:07:08 +00:00
3 lines
135 B
Python
3 lines
135 B
Python
class Solution:
|
|
def numJewelsInStones(self, jewels: str, stones: str) -> int:
|
|
return sum([stones.count(j) for j in jewels]) |