From 2d6fe66e46416d24d360bd4541881ecd3a1cb7e9 Mon Sep 17 00:00:00 2001 From: lkhyun <102892446+lkhyun@users.noreply.github.com> Date: Sat, 29 Nov 2025 23:46:48 +0900 Subject: [PATCH] =?UTF-8?q?[20251129]=20PGM=20/=20Lv2=20/=20=EC=B5=9C?= =?UTF-8?q?=EB=8C=93=EA=B0=92=EA=B3=BC=20=EC=B5=9C=EC=86=9F=EA=B0=92=20/?= =?UTF-8?q?=20=EC=9D=B4=EA=B0=95=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...274 \354\265\234\354\206\237\352\260\222.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "lkhyun/202511/29 PGM Lv2 \354\265\234\353\214\223\352\260\222\352\263\274 \354\265\234\354\206\237\352\260\222.md" diff --git "a/lkhyun/202511/29 PGM Lv2 \354\265\234\353\214\223\352\260\222\352\263\274 \354\265\234\354\206\237\352\260\222.md" "b/lkhyun/202511/29 PGM Lv2 \354\265\234\353\214\223\352\260\222\352\263\274 \354\265\234\354\206\237\352\260\222.md" new file mode 100644 index 00000000..d1324bd1 --- /dev/null +++ "b/lkhyun/202511/29 PGM Lv2 \354\265\234\353\214\223\352\260\222\352\263\274 \354\265\234\354\206\237\352\260\222.md" @@ -0,0 +1,17 @@ +```java +class Solution { + public String solution(String s) { + int min = Integer.MAX_VALUE; + int max = Integer.MIN_VALUE; + String[] splited = s.split(" "); + + int idx = 0; + for(String n : splited){ + int num = Integer.parseInt(n); + min = Math.min(min, num); + max = Math.max(max, num); + } + return min + " " + max; + } +} +```