jewels-stones-linear-time

Status: IN

`num_jewels_in_stones` runs in O(J + S) time and O(J) space by converting `jewels` to a set for O(1) membership testing, then iterating `stones` with a generator expression.

Source: entries/2026/06/06/jewels-and-stones-solution.md

JSON