Search
⌘K
Get Premium
Leetcode 3383. Minimum Runes to Add to Cast Spell
Given a multiset of available runes and a target spell (both strings), determine the minimum extra runes (characters and counts) you must add so the spell's character-count requirements are satisfied. This is essentially a frequency-difference problem over characters — compute deficits for each rune and sum them (with attention to repeated spells or large alphabets if present).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.