Ad
  • Default User Avatar

    don't mutate the input. Do NEVER mutate the input...

    And wen posting about possible issues, please document them correctly (as Seigo did):

    • language
    • input
    • actual
    • expected
  • Custom User Avatar

    Same problem with should work test.

    For:

    moves = ["right", "right", "right", "right", "right", "down", "left", "down", "down", "up", "down", "up", "left", "right", "right", "up"];

    Should return:

    ["E.Honda", "Blanka", "Guile", "Balrog", "Vega", "M.Bison", "Sagat", "Sagat", "Sagat", "Balrog", "Sagat", "Balrog", "Guile", "Balrog", "Vega", "Vega"]

    My function returns correct value

  • Custom User Avatar

    I am also having problems:

    When I attempt to submit, the code passes all testes except one named "should work".

    This test says it expects

    '[\'E.Honda\', \'Blanka\', \'Guile\', \'Balrog\', \'Vega\', \'M.Bison\', \'Sagat\', \'Sagat\', \'Sagat\', \'Balrog\', \'Sagat\', \'Balrog\', \'Guile\', \'Balrog\', \'Vega\', \'Vega\']'
    

    , but received

    '[]'
    

    Based on the expectation, I set up a test with

    moves = ["right","right","right","right","right","down","left","down","down","up","down","up","left","right","right","up"];
    

    with which the output is as expected.

    Please check if tests on submit are correct.

  • Custom User Avatar

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

  • Custom User Avatar

    I had the same problem, then I realized the instructions are confusing.

    If you submit your code to return either true or false, it'll work. the problem is for true I was returning '...is narcissistic'.

  • Custom User Avatar

    In Javascript, the tests and final evaluation fail even with correct answers