Ad
  • Custom User Avatar

    Oh my bad, I haven't noticed the "each piece has a unique uppercase letter ID". That makes this problem much easier 🤦‍♂️

  • Custom User Avatar

    Nice kata, although tests are not sufficient, author should consider adding this plate to tests:

      var plate = [
          'AAAAAAAAA      '.split(''),
          '________A__CCC_'.split(''),
          ' B A C  A  A C '.split(''),
          '_B_A_C__A__A_C_'.split(''),
          ' B A C     A C '.split(''),
          '_B_A_CCCCCCCCC_'.split('')
        ]
    

    Answer should be "C" and not "A" which is a most frequent letter.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I think it should be mentioned in the instructions:
    In Swift got stuck until checked solutions. Apparently tests run on very big numbers. So if you calculate factorial you should use Float80.