Tell me OTLanders. Do you possess the holy power?
Prove yourself by solving the following problem:
————————————————————————————————
Problem 1:
You are given two integers
Example 1:
In Given range there are 2
3 4 5 6 7 8 9
Example 1.1:
In given range there is only
17 18 19 20 21 22 23 24 25
Constraints:
Note: Include in the reply how long it took you to solve it.
————————————————————————————————
Prove yourself by solving the following problem:
————————————————————————————————
Problem 1:
You are given two integers
A and B. You have to figure out how many perfect squares there are in range from A to BExample 1:
A=3, B=9In Given range there are 2
perfect squares because {4, 9} are perfect squares since 2^2 = 4 and 3^2 = 93 4 5 6 7 8 9
Example 1.1:
A=17, B=25In given range there is only
1 perfect square because anything between 16 and 25 are not perfect squares and since the range is from 17 to 25, we only have 1 perfect square which is 25.17 18 19 20 21 22 23 24 25
Constraints:
1 <= A <= B <= 10^9Note: Include in the reply how long it took you to solve it.
————————————————————————————————
Last edited: