Ad
  • Custom User Avatar

    Terribly wrong solution!
    Such inputs like ("codewars", "code", "wasr") and ("codewars", "cwdr", "oeas") should result in False because order is important! See intructions: The restriction is that the characters in part1 and part2 should be in the same order as in s.
    Anyway, this solution would give True for obviously wrong cases like ('adeh', 'bc', 'fg'), where count_chars gives equal result.
    However, this solution passed the tests! What a nice illustration how difficult proper testdesign could be :)