Ad
  • Custom User Avatar

    Nope. It's still not resolved. You need to make a new reply and mark the checkbox below the comment box.

  • Custom User Avatar

    You should resolve thte issue if the problem has been solved.

  • Custom User Avatar

    In Javascript searching for an item in array is o(n). I didnt create the python translation or solution, only the js one, so I cant help you out there, sorry.

  • Custom User Avatar

    That is why I asked you which language you were doing it in. I thought you were using javascript. On a side note, how is a dictionary o(n)?

  • Custom User Avatar

    Using array for lookups could potentially be really slow. It is O(n) worst case so if you passed the kata using array as a lookup, then my performance tests weren't testing all the edge cases.

  • Custom User Avatar

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