Search
⌘K

Leetcode 771. Jewels and Stones

Count how many characters in the string stones are also listed in the string jewels (case‑sensitive). The core task is efficient membership testing—treat jewels as a set of unique types and tally matching characters in stones.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.