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.
You are obviously a clever guy, no doubt about it. However, I have no words to describe how bad it is to have complicated expressions like this in your code:
I truly hope that you've either by now learned your lesson, or that you are not working on some project where some poor soul will have to maintain the code you wrote.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Equal
You are viewing a single comment's thread. Return to all comments →
You are obviously a clever guy, no doubt about it. However, I have no words to describe how bad it is to have complicated expressions like this in your code:
current_sum += (int)delta / 5 + delta % 5 / 2 + delta % 5 % 2 / 1;
I truly hope that you've either by now learned your lesson, or that you are not working on some project where some poor soul will have to maintain the code you wrote.