Sherlock and the Valid String

  • + 0 comments

    Test case 14 consists of the letters 'a' through 'y', each appearing 4000 times, in random order. It is expecting a "YES" return, even though by the definitions set forth this is an invalid string.

    Either something went wrong in the storage backend for the test cases and a letter got chopped off somehow, or this problem is expecting an incorrect answer.

    A correct answer can simply use a character frequency count and some conditionals.