Ad
  • Custom User Avatar

    Syntax error in starting code: const newWeirdObject => () => ({}) should be const newWeirdObject = () => ({})

  • Custom User Avatar

    The spec is incomplete from the description alone (what values to start at?). We're not supposed infer the specs from the sample tests, at least not in this kata ;-)

  • Custom User Avatar

    Needs random tests.

  • Custom User Avatar

    Maybe have some examples in the description? Here'd be a revised version:

    Jack and Jill invented a cipher: each letter's char code is converted in the ternary number system (radix=3) and their digits *(trigits?)* are bumped by one (`0` → `1`, `1` → `2`, `2` → `3`). The transformed characters are then separated by a vertical beam (`|`).
    
    For instance: `Hello` becomes `3311|21313|22111|22111|22121` and `Such an easy kata` becomes `21113|22211|21311|21323|2123|21232|22113|2123|21313|21232|22132|22222|2123|21333|21232|22133|21232`
    
    You task is to write two functions: `encrypt` and `decrypt`. All test strings are guaranteed to be valid.
    
    Good luck, warrior!
    
  • Custom User Avatar