From fd8d086a483cb303ab2fc07d2729e3099aec9908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=9D=B8=EC=84=B1?= Date: Sat, 31 May 2025 23:28:43 +0900 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20=ED=8C=8C=EC=9D=BC=20=EA=B2=BD?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../level_0/\352\260\201\353\217\204\352\270\260.js" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "Insung-Jo/\352\260\201\353\217\204\352\270\260.js" => "Insung-Jo/level_0/\352\260\201\353\217\204\352\270\260.js" (100%) diff --git "a/Insung-Jo/\352\260\201\353\217\204\352\270\260.js" "b/Insung-Jo/level_0/\352\260\201\353\217\204\352\270\260.js" similarity index 100% rename from "Insung-Jo/\352\260\201\353\217\204\352\270\260.js" rename to "Insung-Jo/level_0/\352\260\201\353\217\204\352\270\260.js" From 0db382fb8eb80d7fdad77136e432997d09857e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=9D=B8=EC=84=B1?= Date: Sat, 31 May 2025 23:31:01 +0900 Subject: [PATCH 2/3] =?UTF-8?q?solve:=20=EC=A7=9D=EC=88=98=EC=9D=98=20?= =?UTF-8?q?=ED=95=A9=20=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\247\235\354\210\230\354\235\230 \355\225\251.js" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "Insung-Jo/level_0/\354\247\235\354\210\230\354\235\230 \355\225\251.js" diff --git "a/Insung-Jo/level_0/\354\247\235\354\210\230\354\235\230 \355\225\251.js" "b/Insung-Jo/level_0/\354\247\235\354\210\230\354\235\230 \355\225\251.js" new file mode 100644 index 0000000..415098b --- /dev/null +++ "b/Insung-Jo/level_0/\354\247\235\354\210\230\354\235\230 \355\225\251.js" @@ -0,0 +1,12 @@ +function solution(n) { + if(typeof n !== 'number') throw new Error('정수를 입력해주세요.'); + if(n <= 1) return 0; + + let result = 0; + + for(let i = 2; i <= n; i+=2){ + result += i; + } + + return result; +} \ No newline at end of file From 96e871669f1fcc455fb29f13ed6166a45a568d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=9D=B8=EC=84=B1?= Date: Sat, 31 May 2025 23:32:14 +0900 Subject: [PATCH 3/3] =?UTF-8?q?solve:=20=EB=AC=B8=EC=9E=90=EC=97=B4=20?= =?UTF-8?q?=EC=95=88=EC=97=90=20=EB=AC=B8=EC=9E=90=EC=97=B4=20=EC=99=84?= =?UTF-8?q?=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...210\354\227\220 \353\254\270\354\236\220\354\227\264.js" | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 "Insung-Jo/level_0/\353\254\270\354\236\220\354\227\264 \354\225\210\354\227\220 \353\254\270\354\236\220\354\227\264.js" diff --git "a/Insung-Jo/level_0/\353\254\270\354\236\220\354\227\264 \354\225\210\354\227\220 \353\254\270\354\236\220\354\227\264.js" "b/Insung-Jo/level_0/\353\254\270\354\236\220\354\227\264 \354\225\210\354\227\220 \353\254\270\354\236\220\354\227\264.js" new file mode 100644 index 0000000..dde621e --- /dev/null +++ "b/Insung-Jo/level_0/\353\254\270\354\236\220\354\227\264 \354\225\210\354\227\220 \353\254\270\354\236\220\354\227\264.js" @@ -0,0 +1,6 @@ +function solution(str1, str2) { + if(typeof str1 !== 'string' || typeof str2 !== 'string') throw new Error('문자를 입력해주세요.'); + const result = str1.indexOf(str2) !== -1 ? 1 : 2; + + return result; +} \ No newline at end of file