message by cutting letters out of an old newspaper. All the letters you managed to cut out are listed in the string clippings.
Each clipped letter can be glued down only once, and the order of letters in clippings does not matter. Return True if these letters are enough to assemble the whole note, and False otherwise.message='tea', clippings='aetherial' → True
The clippings contain a "t", an "e" and an "a", at least one of each.
message='book', clippings='bok' → False
The word needs two "o"s, but the clippings only have one.
message='zz', clippings='zaz' → True
The clippings have two "z"s; the extra "a" does no harm.
message.length, clippings.length ≤ 10⁵message='tea', clippings='aetherial'
True
Run checks the first 3 tests in your browser. Submit checks all 139 tests on the server, hidden ones included.