We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b5dee2 commit ad198f2Copy full SHA for ad198f2
leetcode-771/leetcode771.py
@@ -0,0 +1,11 @@
1
+class Solution:
2
+ def numJewelsInStones(self, J: str, S: str) -> int:
3
+ sum0 = 0
4
+
5
+ for j in J:
6
+ sum0 = sum0 + S.count(j)
7
+ return sum0
8
9
+# Below is tesing
10
+sol = Solution()
11
+print(sol.numJewelsInStones('aA', 'aAAbbbb'))
0 commit comments