Ad
  • Default User Avatar

    resolved

  • Default User Avatar

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

  • Default User Avatar

    JavaScript:
    i get error in every case with array length more than 1.
    For example in this expression '10 * 5 / 2' :
    "Expected actual value undefined to approximately equal expected value 25 (accepted relative error: 1e-9)"
    and actually i have right answer in output, can somebody explain me, what is going on?

  • Default User Avatar

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

  • Default User Avatar

    Who can explain to me, why my result not acceptable?
    ['EAST', 'WEST', 'SOUTH', 'NORTH', 'SOUTH', 'WEST', 'WEST', 'EAST', 'SOUTH', 'NORTH']
    ✘ Expected: '['SOUTH', 'WEST']', instead got: '['WEST', 'SOUTH']'

    ['NORTH', 'SOUTH', 'EAST', 'WEST', 'NORTH', 'SOUTH', 'WEST', 'NORTH', 'EAST', 'WEST', 'NORTH', 'SOUTH', 'EAST', 'WEST']
    ✘ Expected: '['WEST', 'NORTH']', instead got: '['NORTH', 'WEST']'

    ['WEST', 'EAST', 'SOUTH', 'NORTH', 'NORTH', 'EAST', 'WEST', 'EAST', 'NORTH', 'SOUTH']
    ✘ Expected: '['NORTH', 'EAST']', instead got: '['EAST', 'NORTH']'