We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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
Cookie support is required to access HackerRank
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 →
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