Problem 771 · Easy

Jewels and Stones

Given a set of jewel letters, tally how many letters in a second collection are jewels. Each stone is checked against a lookup set and the running count grows as matches are found.

Open the interactive visualisation