Jewels and Stones
Easy
Strings
Hash Table
String
Count how many characters in stones are also in jewels.
Constraints
Lengths ≤ 50
Examples
Example 1:
Input: aA
aAAbbbb
Output: 3
Example 2:
Input: z
ZZ
Output: 0
Tests:
Runtime:
Memory:
Test
Input:
Expected:
Got:
Click Run Code to test against sample cases, or Submit to test against all cases.
▲ Console