Ad
  • Custom User Avatar

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

  • Custom User Avatar

    In JavaScript, which is overall more efficient? Using IFs statements, Swith-Case, or K-V pair object with anonymous function? I have seen people using IFs- S-C and my self using K-V objects(something I picked from C# unfortunately).

  • Custom User Avatar

    Tests need to be revised in several languages. With a random string of length 10, a possible input would be "iissssssso", which should return [340282366920938463463374607431768211456], with a 39 digits number. []int in Go is unable to hold this, but random tests generate strings of length comprised between 20 and 40. Python and Ruby are ok since they have integers of arbitrary size. I don't understand how tests are made in Haskell, but the output should be [Integer] and not [Int]. COBOL, Rust, Groovy and JS have tests correctly adjusted. C has no random tests (there's an issue already opened about that). Typescript has strings up to 11 characters, which I think may generate overflow (?). Other languages need to be checked. Actually, tests should be rewritten for languages having big integers and use them.

  • Custom User Avatar

    Pretty nice kata, but if you make a state about invalid charcters you should make a test for it, encurageing those who make this kata to handle such outcome.

  • Default User Avatar

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