• + 1 comment

    My code is failing on this test case as well and I do not think the answer should be 5. The mixing should be (if I understand this problem correctly) to be:

    Input: 8 90 / 13 47 74 12 89 74 18 38

    Output:

    Mixing= 1 X 12 + 2 X 13 = 38

    Mixing= 1 X 18 + 2 X 38 = 94

    greater than: 90

    Operations = 2