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.
2 parents 1f97740 + c0e12e3 commit 982d6eaCopy full SHA for 982d6ea
Insung-Jo/level_0/가장 큰 수 찾기.js
@@ -0,0 +1,5 @@
1
+function solution(array) {
2
+ const answer = [Math.max(...array), array.indexOf(Math.max(...array))];
3
+
4
+ return answer;
5
+}
Insung-Jo/level_0/약수 구하기.js
@@ -0,0 +1,14 @@
+function solution(n) {
+ const answer = [];
+ let count = 1;
+ while (n >= count) {
6
+ if (n % count === 0) {
7
+ answer.push(count);
8
+ }
9
10
+ count++;
11
12
13
+ return answer.sort((a, b) => a - b);
14
Insung-Jo/level_1/평균 구하기.js
@@ -0,0 +1,9 @@
+function solution(arr) {
+ let answer = 0;
+ for (const i of arr) {
+ answer += i;
+ return answer / arr.length;
0 commit comments