You are viewing a single comment's thread. Return to all comments →
If sqrt is a divisor, we end up counting it twice. We do sum -=sqrt to basically remove the double-count we did earlier.
sum -=sqrt
HackerRank solutions.
Seems like cookies are disabled on this browser, please enable them to open this website
Day 19: Interfaces
You are viewing a single comment's thread. Return to all comments →
If sqrt is a divisor, we end up counting it twice. We do
sum -=sqrt
to basically remove the double-count we did earlier.HackerRank solutions.