Jewels and stones
class Solution:
def numJewelsInStones(self, jewels: str, stones: str) -> int:
count = 0
for c in stones:
if c in jewels:
count += 1
return count
class Solution:
def numJewelsInStones(self, jewels: str, stones: str) -> int:
count = 0
for c in stones:
if c in jewels:
count += 1
return count