You are viewing a single comment's thread. Return to all comments →
in C#
public static int squares(int a, int b) { var asq = (int)Math.Ceiling(Math.Sqrt(a)); var bsq = (int)Math.Sqrt(b); return bsq>=asq ? bsq-asq+1 : 0; }
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 →
in C#