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
▲ Console
📱

Install Talent Enrich

Get instant access to jobs and career tools on your device.