Ad
  • Custom User Avatar

    I don't think he has a question, I think he's giving more examples about input-output pairs.

  • Custom User Avatar

    @10diieggos I'm not sure I understand your question, since you have just posted a bunch of error messages: if you are getting the above messages like 1, 1, 1, 3, 3 Should be 1000 it is because your code is returning the first part of the message - in this case 1, 1, 1, 3, 3 and the kata testing is expecting the second part of the message (i.e. that is the correct answer).

    So, without seeing your code, it seems like you are returning 1, 1, 1, 3, 3 rather than 1000. You seem to be returning the input by mistake?

  • Custom User Avatar
    Thank you Chrono79
    1, 1, 1, 3, 3 Should be 1000 
    2, 2, 2, 3, 3 Should be 200 
    3, 3, 3, 3, 3 Should be 300 
    4, 4, 4, 3, 3 Should be 400 
    5, 5, 5, 3, 3 Should be 500 
    6, 6, 6, 3, 3 Should be 600 
    1, 1, 1, 1, 3 Should be 1100 
    1, 1, 1, 1, 5 Should be 1150 
    2, 4, 4, 5, 4 Should be 450 
    3, 4, 5, 3, 3 Should be 350 
    1, 5, 1, 3, 4 Should be 250
    
  • Custom User Avatar
  • Custom User Avatar

    3, 3, 3, 3, 3 Should be 300

  • Custom User Avatar

    3, 3, 3, 3, 3 Should be 300

  • Custom User Avatar

    test 3, 3, 3, 3, 3 Should be 300

  • Custom User Avatar

    1, 1, 1, 3, 3 Should be 1000 --------------
    2, 2, 2, 3, 3 Should be 200 -------------
    3, 3, 3, 3, 3 Should be 300 -------------
    4, 4, 4, 3, 3 Should be 400 -------------
    5, 5, 5, 3, 3 Should be 500 -------------
    6, 6, 6, 3, 3 Should be 600 -------------
    1, 1, 1, 1, 3 Should be 1100 -------------
    1, 1, 1, 1, 5 Should be 1150 -------------
    2, 4, 4, 5, 4 Should be 450 -------------
    3, 4, 5, 3, 3 Should be 350 -------------
    1, 5, 1, 3, 4 Should be 250

  • Custom User Avatar

    Fantastic!

    I learned a lot from your solution.

    I will base my solution on yours.

    I'll implement {length: int/2} for reduce iterations.

  • Custom User Avatar

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