Ad
  • Default User Avatar

    17 is the correct solution; the problem states that kings are either worth 10 or the anounced number (9 in that test case), whichever yields the better solution. In this case, the king value of 10 gives 17 (1+1+1+10+4).

  • Default User Avatar

    In JavaScript, the ['A', 'A', 'A', 'K', '4'] test is poorly written since, by the rules of the kata, it equals 16, but the test says it should be 17. I succeeded every other test but I had to hack the solution just so it could give 17 on that specific test case.