Skip to content

Commit ce663c9

Browse files
authored
Update Jewels and Stones - Leetcode 771.py
1 parent 53888de commit ce663c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Jewels and Stones - Leetcode 771.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ def numJewelsInStones (self, jewels: str, stones: str) -> int:
77
if stone in s:
88
count += 1
99
return count
10+
11+
# Time Complexity: O(n + m)
12+
# Space Complexity: O(n)

0 commit comments

Comments
 (0)