mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-15 09:57:09 +00:00
Time: 22 ms (99.12%), Space: 13.9 MB (54.39%) - LeetHub
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
class Solution:
|
||||||
|
def numJewelsInStones(self, jewels: str, stones: str) -> int:
|
||||||
|
return sum([stones.count(j) for j in jewels])
|
||||||
Reference in New Issue
Block a user