From 5c2cf93a9c2bb97a8ecbc8f43ef9afd7a5565961 Mon Sep 17 00:00:00 2001 From: doitchuu Date: Wed, 8 Apr 2026 23:59:38 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20JadenCase=20=EB=AC=B8=EC=9E=90?= =?UTF-8?q?=EC=97=B4=20=EB=A7=8C=EB=93=A4=EA=B8=B0=20=ED=92=80=EC=9D=B4=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doitchuu/JadenCaseString.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 doitchuu/JadenCaseString.js diff --git a/doitchuu/JadenCaseString.js b/doitchuu/JadenCaseString.js new file mode 100644 index 0000000..762292c --- /dev/null +++ b/doitchuu/JadenCaseString.js @@ -0,0 +1,6 @@ +function solution(s) { + return s.split(" ").map((char) => { + if (char.length === 0) return ""; + return char[0].toUpperCase() + char.slice(1).toLowerCase(); + }).join(" "); +} From 943e74a11971755623456eb22b1b7cff492a5c4f Mon Sep 17 00:00:00 2001 From: doitchuu Date: Thu, 9 Apr 2026 00:00:02 +0900 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=EC=B5=9C=EB=8C=93=EA=B0=92?= =?UTF-8?q?=EA=B3=BC=20=EC=B5=9C=EC=86=9F=EA=B0=92=20=ED=92=80=EC=9D=B4=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doitchuu/MaximumAndMinimum.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 doitchuu/MaximumAndMinimum.js diff --git a/doitchuu/MaximumAndMinimum.js b/doitchuu/MaximumAndMinimum.js new file mode 100644 index 0000000..8ee5f68 --- /dev/null +++ b/doitchuu/MaximumAndMinimum.js @@ -0,0 +1,4 @@ +function solution(s) { + const numList = s.split(" ").sort((a, b) => a - b); + return numList[0] + " " + numList[numList.length - 1]; +} From 7a941864784d13de23fff64d2f24553fc0f8affc Mon Sep 17 00:00:00 2001 From: doitchuu Date: Thu, 9 Apr 2026 00:00:14 +0900 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=EC=98=AC=EB=B0=94=EB=A5=B8=20?= =?UTF-8?q?=EA=B4=84=ED=98=B8=20=ED=92=80=EC=9D=B4=20=EC=9E=91=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doitchuu/CorrectParentheses.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doitchuu/CorrectParentheses.js diff --git a/doitchuu/CorrectParentheses.js b/doitchuu/CorrectParentheses.js new file mode 100644 index 0000000..a0cc10d --- /dev/null +++ b/doitchuu/CorrectParentheses.js @@ -0,0 +1,17 @@ +function solution(s) { + if (s[0] === ")") { + return false; + } + + const stack = []; + + for (let i = 0; i < s.length; i++) { + if (s[i] === "(") { + stack.push("("); + } else { + stack.pop(); + } + } + + return stack.length > 0 ? false : true; +}