tiles, one letter per tile. Letters may repeat.
You lay one or more of the tiles in a row (using each tile at most once) and read off the sequence of letters.
How many different non-empty letter sequences can you form? Rows that read the same are counted once, even if they use different tiles.tiles="XYY" → 8
Length 1: X, Y. Length 2: XY, YX, YY. Length 3: XYY, YXY, YYX. That is 8 in total.
tiles="MN" → 4
You can make M, N, MN and NM.
tiles="ZZZZ" → 4
tiles consists of uppercase English letterstiles="XYY"
8
Run checks the first 3 tests in your browser. Submit checks all 39 tests on the server, hidden ones included.