Given A and B (1 <= A <= B <= 10^9), count the positive integers X with A <= X*(X+1) <= B.
Unlock detailed company stats for this questionUpgrade
Community answers
No answers contributed by the community yet.
Related questions
Count the ways to write a given positive integer as a sum of at least two consecutive positive integers (for 21 the answer is 3, for 250 it is 3).Given a list of integers, return 1 if the integer is a power of 2 and 0 if it is not.I am thinking of two positive integers a and b with a/b in the closed interval [0.48, 0.52]. Which values of b are possible?Related courses

Course
