We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cee4b18 commit 24561a7Copy full SHA for 24561a7
unn04012/queue/Number_of_pairs.js
@@ -0,0 +1,8 @@
1
+function solution(n) {
2
+ const divisors = [];
3
+
4
+ for (let i = 1; i <= n; i++) if (n % i === 0) divisors.push(i);
5
+ return divisors.length;
6
+}
7
8
+console.log(solution(100));
0 commit comments