![]() |
Given two numbers X and Y. The task is to find the number of elements in the range [X,Y] both inclusive, that have the maximum number of divisors. Examples:
Method 1:
Below is the implementation of above method: C++
Javascript
Javascript
Output:
3
Time Complexity : O((Y – X + 1) * sqrt(Y)) |
Reffered: https://www.geeksforgeeks.org
Arrays |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 7 |