Count Divisors of n in O(n^1/3)
Given a number n, count all distinct divisors of it. Examples: Input : 18 Output : 6 Divisors of 18 are 1, 2, 3, 6, 9 and 18. Input : 100 Output : 9 Divisors of 100 are 1, 2, 4, 5, 10, 20, 25, 50 and 100Recommended: Please solve it on âPRACTICE â first, before moving on to the solution. Approach 1: