From 17bf35fa1b6247f287131f769e8193a1d7382d62 Mon Sep 17 00:00:00 2001 From: pntbiz Date: Wed, 8 Apr 2026 18:47:44 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=EC=95=8C=EA=B3=A0=EB=A6=AC=EC=A6=98=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=92=80=EC=9D=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Study/src/JadenCaseString.java | 36 +++++++++++++++++++++++++++++++++ Study/src/MaxValAndMinVal.java | 29 ++++++++++++++++++++++++++ Study/src/ValidParentheses.java | 33 ++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 Study/src/JadenCaseString.java create mode 100644 Study/src/MaxValAndMinVal.java create mode 100644 Study/src/ValidParentheses.java diff --git a/Study/src/JadenCaseString.java b/Study/src/JadenCaseString.java new file mode 100644 index 0000000..43c8650 --- /dev/null +++ b/Study/src/JadenCaseString.java @@ -0,0 +1,36 @@ +/* + * 프로그래머스 코딩테스트 문제 Lv.2 정답률 높은 순 기준 + * 문제명 : JadenCase 문자열 만들기 + * 날짜 : 2026 - 04 - 06 + * 풀이 시간 : 23분 + */ +public class JadenCaseString { + public static void main(String[] args) { + String testCase = "3people unFollowed me"; + + String answer = solution(testCase); + System.out.println(answer); + } + + static String solution(String s) { + char[] arr = s.toCharArray(); + + boolean isStart = true; + + for (int i = 0; i < arr.length; i++) { + if (arr[i] == ' ') { + isStart = true; + } else { + if (isStart) { + arr[i] = Character.toUpperCase(arr[i]); + isStart = false; + } else { + arr[i] = Character.toLowerCase(arr[i]); + } + } + } + + String answer = new String(arr); + return answer; + } +} diff --git a/Study/src/MaxValAndMinVal.java b/Study/src/MaxValAndMinVal.java new file mode 100644 index 0000000..f9f95e1 --- /dev/null +++ b/Study/src/MaxValAndMinVal.java @@ -0,0 +1,29 @@ +/* + * 프로그래머스 코딩테스트 문제 Lv.2 정답률 높은 순 기준 + * 문제명 : 최댓값과 최솟값 + * 날짜 : 2026 - 04 - 06 + * 풀이 시간 : 8분 + */ + +import java.util.Arrays; + +public class MaxValAndMinVal { + public static void main(String[] args) { + String testCase = "-2 -1 0 1 2"; + + String answer = solution(testCase); + System.out.println(answer); + } + + static String solution(String s) { + int[] nums = Arrays.stream(s.split(" ")) + .mapToInt(Integer::parseInt) + .toArray(); + + int maxVal = Arrays.stream(nums).max().getAsInt(); + int minVal = Arrays.stream(nums).min().getAsInt(); + + String answer = minVal + " " + maxVal; + return answer; + } +} diff --git a/Study/src/ValidParentheses.java b/Study/src/ValidParentheses.java new file mode 100644 index 0000000..097f5ef --- /dev/null +++ b/Study/src/ValidParentheses.java @@ -0,0 +1,33 @@ +/* + * 프로그래머스 코딩테스트 문제 Lv.2 정답률 높은 순 기준 + * 문제명 : 올바른 괄호 + * 날짜 : 2026 - 04 - 07 + * 풀이 시간 : 53분 + */ +public class ValidParentheses { + public static void main(String[] args) { + String testCase = "(()("; + + boolean answer = solution(testCase); + System.out.println(answer); + } + + static boolean solution(String s) { + char[] charArr = s.toCharArray(); + + int count = 0; + for (char c : charArr) { + if (c == '(') { + count++; + } else { + count--; + } + + // count가 음수면 바로 false 리턴 + if (count < 0) return false; + } + + boolean answer = (count == 0); + return answer; + } +} From 3e41d5d26bd5cd976fa4cf13c36cda0e3740f519 Mon Sep 17 00:00:00 2001 From: LeeBaeJin Date: Wed, 8 Apr 2026 19:25:04 +0900 Subject: [PATCH 2/4] =?UTF-8?q?Study=20=EB=94=94=EB=A0=89=ED=86=A0?= =?UTF-8?q?=EB=A6=AC=EB=A5=BC=20LeeBJ=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=ED=95=98=EA=B3=A0=20Java=20=ED=8C=8C=EC=9D=BC=EB=A7=8C=20?= =?UTF-8?q?=EC=B6=94=EC=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 7 ++++++- {Study => LeeBJ}/src/JadenCaseString.java | 0 {Study => LeeBJ}/src/MaxValAndMinVal.java | 0 {Study => LeeBJ}/src/ValidParentheses.java | 0 4 files changed, 6 insertions(+), 1 deletion(-) rename {Study => LeeBJ}/src/JadenCaseString.java (100%) rename {Study => LeeBJ}/src/MaxValAndMinVal.java (100%) rename {Study => LeeBJ}/src/ValidParentheses.java (100%) diff --git a/.gitignore b/.gitignore index 4928814..4eac212 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ CLAUDE.md .claude/ -.omc \ No newline at end of file +.omc + +# Track only Java sources under LeeBJ +/LeeBJ/** +!/LeeBJ/src/ +!/LeeBJ/src/**/*.java \ No newline at end of file diff --git a/Study/src/JadenCaseString.java b/LeeBJ/src/JadenCaseString.java similarity index 100% rename from Study/src/JadenCaseString.java rename to LeeBJ/src/JadenCaseString.java diff --git a/Study/src/MaxValAndMinVal.java b/LeeBJ/src/MaxValAndMinVal.java similarity index 100% rename from Study/src/MaxValAndMinVal.java rename to LeeBJ/src/MaxValAndMinVal.java diff --git a/Study/src/ValidParentheses.java b/LeeBJ/src/ValidParentheses.java similarity index 100% rename from Study/src/ValidParentheses.java rename to LeeBJ/src/ValidParentheses.java From 265ae1442bb9e27d7b9f898d17ae12afd17868c5 Mon Sep 17 00:00:00 2001 From: LeeBaeJin Date: Wed, 8 Apr 2026 19:27:54 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=EB=A3=A8=ED=8A=B8=20.project=20=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EB=AC=B4=EC=8B=9C=20=EA=B7=9C=EC=B9=99=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4eac212..9a8ac41 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ CLAUDE.md .claude/ .omc +.project # Track only Java sources under LeeBJ /LeeBJ/** From ecb56000391f96a032fa7e891aaa59a56cb37020 Mon Sep 17 00:00:00 2001 From: LEE BAE JIN <60121564+LeeBaeJin@users.noreply.github.com> Date: Wed, 8 Apr 2026 19:38:16 +0900 Subject: [PATCH 4/4] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2829acf..4ffe05a 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ | 이지현 | https://github.com/sik9252 | TS/JS | | 최준호 | https://github.com/raejun92 | TS/JS | | 추슬기 | https://github.com/doitchuu | TS/JS | +| 이배진 | https://github.com/LeeBaeJin | Java | > 멤버 추가 시: PR로 이 표에 본인 정보 추가해주세요.