You are viewing a single comment's thread. Return to all comments →
Swift
let A = sqrt(Double(a)) let intA = Int(A) let B = sqrt(Double(b)) let intB = Int(B) if a == intA*intA{ return Int(B-A+1) } else if b == intB*intB{ return Int(B-A+1) } else { return intB-intA }
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 →
Swift