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.
The reason why I added 0.0000000001 is that, let's say we found 2252 as the result. But CEILING(2252) = 2252, which is something that we do not want. Instead, we want it to be 2253. To achieve this, I added a very small number, in this case 0.0000000001. Therefore, CEILING(2252+0.0000000001) = 2253
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
The Blunder
You are viewing a single comment's thread. Return to all comments →
The reason why I added 0.0000000001 is that, let's say we found 2252 as the result. But CEILING(2252) = 2252, which is something that we do not want. Instead, we want it to be 2253. To achieve this, I added a very small number, in this case 0.0000000001. Therefore, CEILING(2252+0.0000000001) = 2253