Search⌘ K
AI Features

Jewels and Stones

Jewels and Stones gives you a string of jewel types and a string of stones. Count the stones whose characters match a jewel, treating uppercase and lowercase letters as different.

Statement

You are given two strings, jewels and stones. Each character in jewels represents a stone type that is a jewel, ...