We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c82d227 commit 311aca2Copy full SHA for 311aca2
level-2/2개-이하로-다른-비트.js
@@ -1,8 +1,8 @@
1
//https://github.com/codeisneverodd/programmers-coding-test
2
//완벽한 정답이 아닙니다.
3
//정답 1 - le2sky
4
-function solution(n) {
5
- let answer = [];
+function solution(numbers) {
+ const answer = [];
6
numbers.forEach((num) => {
7
if (num % 2 == 0) answer.push(num + 1);
8
else {
0 commit comments