Ad
  • Default User Avatar

    Hi, let's isolate the issue. The problem is not in your editor or CW, the assert.deepEquals method or the input length. Your code solves a different problem :)

    Look at the following case:

    var input = "233312"
    yourSolution(input) === [ [ '3', 3 ], [ '2', 2 ], [ '1', 1 ] ]
    expectedResult      === [ [ '2', 2 ], [ '3', 3 ], [ '1', 1 ] ]
    

    Hint: The description says: "return it as a list of tuples in order of appearance."

    Regards,

    suic

  • Default User Avatar

    How does your editor know the correct answer?

  • Default User Avatar

    if you carefully examine the random test error messages you can figure out how to correct your output based on the directions