model and draft. In one move you may pick any letter in draft and replace it with any other letter. model itself cannot be changed.
Return the fewest moves after which draft is an anagram of model, meaning it holds the same letters in the same quantities (the order does not matter).model="listen", draft="tinsel" → 0
These are already the same letters in another order, so nothing needs to change.
model="rocket", draft="pocket" → 1
Replacing p with r is enough.
model="aaab", draft="bbba" → 2
Two of the extra bs in draft must become as.
model="listen", draft="tinsel"
0
Run checks the first 3 tests in your browser. Submit checks all 72 tests on the server, hidden ones included.