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.
This problem and expected answers are bogus. To get true cost, you should be evaluating using floating point, but using floats gets you "incorrect" answers for #4 and #5. Switching about to using ints you get all test cases passing. So this problem is pretty misleading.
Bill Division
You are viewing a single comment's thread. Return to all comments →
This problem and expected answers are bogus. To get true cost, you should be evaluating using floating point, but using floats gets you "incorrect" answers for #4 and #5. Switching about to using ints you get all test cases passing. So this problem is pretty misleading.