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.
I had this issue but changing from flooring the answer to rounding it fixed it for me. Because floored the answer is "The total meal cost is 12 dollars." But rounded (and the correct answer) it's "The total meal cost is 13 dollars."
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 2: Operators
You are viewing a single comment's thread. Return to all comments →
I had this issue but changing from flooring the answer to rounding it fixed it for me. Because floored the answer is "The total meal cost is 12 dollars." But rounded (and the correct answer) it's "The total meal cost is 13 dollars."