Jesse and Cookies

  • + 0 comments

    It say k = 7 and : sweetness = 1 * Least sweet cookie + 2 * 2nd least sweet cookie But my array was A{3,9} correct answer was : sweetness = 3 + (2*9)

    Why?? 9 is least sweet cookie ?? It make my head hurt... So we don't need check the second value is sweetness or least sweet?