7 kyu

Validate the Hash

Description
Loading description...
Regular Expressions
Algorithms
  • Please sign in or sign up to leave a comment.
  • Souzooka Avatar

    Test cases aren't strong enough.

    There needs to be a test case like "01234abcde<>", because you can pass the kata by only checking that the hash contains 5 numbers and 5 letters, and not verifying that the hash contains incorrect characters.

  • JohanWiltink Avatar

    Congrats on your second first kata! :P

  • aweleshetu Avatar

    Your instruction is incomplete!

    In this scenario, a valid hash value consists of five numbers and five letters in any order.

    you didn't mention that CAPS are not allowed.