Search⌘ K
AI Features

Jewels and Stones

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

Statement

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