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.
Pretty awesome that nothing beats knowing your math... Can you elaborate why this formula works? Is it a Pythagoras (c^2 = a^2 + b^2) kind of deal? I guess the "+1" is cause the interval is inclusive?
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 →
Pretty awesome that nothing beats knowing your math... Can you elaborate why this formula works? Is it a Pythagoras (c^2 = a^2 + b^2) kind of deal? I guess the "+1" is cause the interval is inclusive?