Ad
  • Default User Avatar

    This approach is correct and perfectly fits the time. My solution with the same approach took 2273ms to execute all the tests.

  • Custom User Avatar

    Please don´t post hints in Discourse. Submitted solutions are in Solutions, you can comment a solution there if you want, that's enough. However,you must use a spoiler flag as soon as you give a clue to a solution, comments posts are visible to everyone by default. Users who didn't solve a kata must not be given the solution.

  • Default User Avatar

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

  • Default User Avatar

    Python. v1, functions like:

    def mov(params):
    	...
    eval(fn_name+'params')
    

    12+s on the second test. Timeout.

    v2, bunch of ifs:

    if cmd == 'mov':
    	...
    elif ...
    

    0.6+s. Passed.

  • Default User Avatar

    Similar story. Python. For random tests fails with [X] should equal [X, X]. Can't get it.