cards. In one move you may take any letter off one card and write it anywhere on another card.
Return True if, after any number of moves, every card can show exactly the same word, and False otherwise.cards=["aab", "b", "ab"] → True
There are 3 a's and 3 b's across 3 cards: move the extra a to the second card and every card reads ab.
cards=["xy", "x"] → False
There is a single y and two cards, so it cannot be split evenly.
cards[i] consists of lowercase English letterscards=["aab", "b", "ab"]
True
Run checks the first 3 tests in your browser. Submit checks all 90 tests on the server, hidden ones included.