Ad
  • Custom User Avatar

    Great solution! Is this considered better practice than using the Number.isInteger() javascript function? Perhaps it's faster?

  • Default User Avatar

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

  • Custom User Avatar

    This would require to update all languages, so not ideal. Also, users can train on how to write their own dictionary or hashmap that way!

  • Custom User Avatar

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

  • Custom User Avatar

    OP solved it, closing

  • Custom User Avatar

    There are no restrictions on how a problem can be solved, unless the author explictly establishes tests for such cases.

  • Custom User Avatar

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

  • Default User Avatar

    Because all of languages are only examples, and they don't mean anything special here.

  • Default User Avatar

    Thanks! That was an inteesting one.

  • Default User Avatar

    The only thing that confused this type of database list or dict. The author does not give a direct indication of the database typing.

  • Default User Avatar

    The reason your code fails is because you copied descriptions of invalid tests and thought they were meant to be the result, but the instructions say:

    It should default to English ... in the event of an invalid input.

    So, your foreign environment pass your code because it has been given incorrect results. The correct expected results are in place correctly here on this site, so you must base your code on that.

  • Default User Avatar

    If you cannot prove that the kata has flawed code, do not post as an issue, post as a question. "It works on my machine" is not enough of a basis.

  • Custom User Avatar

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

  • Custom User Avatar

    If it's just for practice, I don't think it's necessary to list so many key-value pairs, copying and paste is really annoying

  • Default User Avatar

    you can include them and still pass...

  • Loading more items...