You are viewing a single comment's thread. Return to all 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?
Seems like cookies are disabled on this browser, please enable them to open this website
Jesse and Cookies
You are viewing a single comment's thread. Return to all 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?