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.
your result will be one less than the actual result, it should be because in your case you have miscounted the case when the a (while integers are from (a,b)) is itself a square number
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Squares
You are viewing a single comment's thread. Return to all comments →
your result will be one less than the actual result, it should be because in your case you have miscounted the case when the a (while integers are from (a,b)) is itself a square number