Problem 2287 · Easy

Rearrange Characters to Make Target String

Count the letters of s and of the target; the answer is the smallest ratio of available to needed letters.

Open the interactive visualisation