Sherlock and Squares Hackerrank Solution - java For explanation watch video :: Code:: import java.io.*; import java.math.*; import java.security.*; import java.text.*; import java.util.*; import java.util.concurrent.*; import java.util.function.*; import java.util.regex.*; import java.util.stream.*; import static java.util.stream.Collectors.joining; import static java.util.stream.Collectors.toList; class Result { public static int squares( int a, int b) { int first = ( int )Math.ceil(Math.sqrt(a)); int last = ( int )Math.floor(Math.sqrt(b)); return last - first + 1 ; } } public class Solution ...