| 1 | class Solution: |
| 2 | def numJewelsInStones(self, J: str, S: str) -> int: |
| 3 | # maintain count of jewels |
| 4 | jewels = 0 |
| 5 | |
| 6 | # check how many jewels are in the string of stones |
| 7 | for j in J: |
| 8 | jewels += S.count(j) |
| 9 | |
| 10 | return jewels |
nothing calls this directly
no outgoing calls
no test coverage detected