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 5fe995d + d5f00b0 commit e718649Copy full SHA for e718649
Insung-Jo/level_0/중앙값 구하기.js
@@ -0,0 +1,6 @@
1
+function solution(array) {
2
+ const answer = array.sort((a, b) => a - b);
3
+ const num = Math.floor(answer.length / 2);
4
+
5
+ return answer[num];
6
+}
Insung-Jo/level_0/짝수는 싫어요.js
@@ -0,0 +1,10 @@
+function solution(n) {
+ let answer = [];
+ for (let i = 0; i <= n; i++) {
+ if (i % 2 !== 0) {
+ answer.push(i);
7
+ }
8
9
+ return answer;
10
0 commit comments