Stickers to Spell Word

Given sticker words and a target string, find the minimum number of stickers needed to spell the target. Each sticker can be used multiple times and you have infinite copies of each. Return -1 if impossible.

Examples
Input: [["with","example","science"],"thehat"]
Output: 3
Hints

Stickers to Spell Word

Given sticker words and a target string, find the minimum number of stickers needed to spell the target. Each sticker can be used multiple times and you have infinite copies of each. Return -1 if impossible.