From e998818222427571abd1bea1f58bf838af94de36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=9D=B8=EC=84=B1?= Date: Tue, 16 Sep 2025 14:59:54 +0900 Subject: [PATCH 1/2] =?UTF-8?q?solve:=20n=EC=9D=98=20=EB=B0=B0=EC=88=98=20?= =?UTF-8?q?=EA=B3=A0=EB=A5=B4=EA=B8=B0=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...342\200\205\352\263\240\353\245\264\352\270\260.js" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 "Insung-Jo/level_0/n\354\235\230\342\200\205\353\260\260\354\210\230\342\200\205\352\263\240\353\245\264\352\270\260.js" diff --git "a/Insung-Jo/level_0/n\354\235\230\342\200\205\353\260\260\354\210\230\342\200\205\352\263\240\353\245\264\352\270\260.js" "b/Insung-Jo/level_0/n\354\235\230\342\200\205\353\260\260\354\210\230\342\200\205\352\263\240\353\245\264\352\270\260.js" new file mode 100644 index 0000000..1cbc869 --- /dev/null +++ "b/Insung-Jo/level_0/n\354\235\230\342\200\205\353\260\260\354\210\230\342\200\205\352\263\240\353\245\264\352\270\260.js" @@ -0,0 +1,10 @@ +function solution(n, numlist) { + let result = []; + + for(let i = 0; i < numlist.length; i++){ + if(numlist[i] % n === 0){ + result.push(numlist[i]); + } + } + return result; +} \ No newline at end of file From 7e22979cc3105031cea4b37ee4f8e96faccc896a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=9D=B8=EC=84=B1?= Date: Tue, 16 Sep 2025 15:14:14 +0900 Subject: [PATCH 2/2] =?UTF-8?q?solve:=20=EB=B0=B0=EC=97=B4=EC=9D=98=20?= =?UTF-8?q?=EC=9C=A0=EC=82=AC=EB=8F=84=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...2\200\205\354\234\240\354\202\254\353\217\204.js" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "Insung-Jo/level_0/\353\260\260\354\227\264\354\235\230\342\200\205\354\234\240\354\202\254\353\217\204.js" diff --git "a/Insung-Jo/level_0/\353\260\260\354\227\264\354\235\230\342\200\205\354\234\240\354\202\254\353\217\204.js" "b/Insung-Jo/level_0/\353\260\260\354\227\264\354\235\230\342\200\205\354\234\240\354\202\254\353\217\204.js" new file mode 100644 index 0000000..3de991f --- /dev/null +++ "b/Insung-Jo/level_0/\353\260\260\354\227\264\354\235\230\342\200\205\354\234\240\354\202\254\353\217\204.js" @@ -0,0 +1,12 @@ +function solution(s1, s2) { + let result = 0; + + for (let i = 0; i < s1.length; i++) { + for (let j = 0; j < s2.length; j++) { + if (s1[i] === s2[j]) { + result++; + } + } + } + return result; +}