๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

IT Blog404

[IT] ๊ฐ์ฒด์ง€ํ–ฅ์˜ ์‚ฌ์‹ค๊ณผ ์˜คํ•ด • ์•ˆ๋…•ํ•˜์„ธ์š”~ ์ด์ „์— ์šด์˜ํ•˜๋˜ ๋ธ”๋กœ๊ทธ์™€ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” GitHub๊ฐ€ ๋”ฐ๋กœ ์žˆ์Šต๋‹ˆ๋‹ค. • ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ • GitHub ๐Ÿ” โœ” ๊ฐ์ฒด์ง€ํ–ฅ์˜ ์‚ฌ์‹ค๊ณผ ์˜คํ•ด โœ” ๋ชฉ์ฐจ 01 / ํ˜‘๋ ฅํ•˜๋Š” ๊ฐ์ฒด๋“ค์˜ ๊ณต๋™์ฒด 02 / ์ด์ƒํ•œ ๋‚˜๋ผ์˜ ๊ฐ์ฒด 03 / ํƒ€์ž…๊ณผ ์ถ”์ƒํ™” 04 / ์—ญํ• , ์ฑ…์ž„, ํ˜‘๋ ฅ 05 / ์ฑ…์ž„๊ณผ ๋ฉ”์‹œ์ง€ 06 / ๊ฐ์ฒด ์ง€๋„ 07 / ํ•จ๊ป˜ ๋ชจ์œผ๊ธฐ ๋ถ€๋ก A / ์ถ”์ƒํ™” ๊ธฐ๋ฒ• ๋ถ€๋ก B / ์ฐธ๊ณ  ๋ฌธํ—Œ ์ด ์ฑ…์€ ๊ฐ์ฒด์ง€ํ–ฅ์ด๋ž€ ๋ฌด์—‡์ธ๊ฐ€๋ผ๋Š” ์›๋ก ์ ์ด๋ฉด์„œ๋„ ๋‹ค์†Œ ์œ„ํ—˜์Šค๋Ÿฌ์šด ์งˆ๋ฌธ์— ๋Œ€ํ•œ ๋‚˜๋ฆ„๋Œ€๋กœ ์ €์ž์˜ ๋Œ€๋‹ต์„ ๋งํ•˜๊ธฐ ์œ„ํ•ด ์“ฐ์—ฌ์กŒ๋‹ค. 1) ๊ฐ์ฒด์ง€ํ–ฅ์œผ๋กœ ํ–ฅํ•˜๋Š” ์ฒซ ๊ฑธ์Œ์€ ํด๋ž˜์Šค๊ฐ€ ์•„๋‹ˆ๋ผ ๊ฐ์ฒด๋ฅผ ๋ฐ”๋ผ๋ณด๋Š” ๊ฒƒ์—์„œ ์‹œ์ž‘ํ•œ๋‹ค. 2) ๊ฐ์ฒด์ง€ํ–ฅ์œผ๋กœ ํ–ฅํ•˜๋Š” ๋‘ ๋ฒˆ์งธ๋Š” ๊ฐ์ฒด๋ฅผ ๋…๋ฆฝ์ ์ธ ์กด์žฌ๊ฐ€ ์•„๋‹ˆ๋ผ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•˜๊ธฐ ์œ„ํ•ด ํ˜‘๋ ฅํ•˜๋Š” ๊ณต๋™์ฒด์˜ ์กด์žฌ๋กœ.. 2021. 1. 31.
[Spring] HandlerMethodArgumentResolver • ์•ˆ๋…•ํ•˜์„ธ์š”~ ์ด์ „์— ์šด์˜ํ•˜๋˜ ๋ธ”๋กœ๊ทธ์™€ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” GitHub๊ฐ€ ๋”ฐ๋กœ ์žˆ์Šต๋‹ˆ๋‹ค. • ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ • GitHub ๐Ÿ” โœ” HandlerMethodArgumentResolver ์„ค๋ช… ์•ˆ๋…•ํ•˜์„ธ์š”~ ์ด๋ฒˆ์— ์ •๋ฆฌํ•  ๋‚ด์šฉ์€ Spring์˜ HandlerMethodArgumentResolver ์ธํ„ฐํŽ˜์ด์Šค ์ž…๋‹ˆ๋‹ค. HandlerMethodArgumentResolver ์ธํ„ฐํŽ˜์ด์Šค๋Š” Controller์—์„œ ํŠน์ • ์กฐ๊ฑด์— ๋งž๋Š” ํŒŒ๋ผ๋ฏธํ„ฐ๊ฐ€ ์žˆ์„๋•Œ ํ•ด๋‹น ๊ฐ’์„ ๋ฐ”์ธ๋”ฉํ•˜๋Š” ์ธํ„ฐํŽ˜์ด์Šค์ž…๋‹ˆ๋‹ค. ๋ณดํ†ต ์Šคํ”„๋ง์˜ Controller์—์„œ @RequestBody ์–ด๋…ธํ…Œ์ด์…˜์„ ํ†ตํ•ด request์˜ Body ๊ฐ’์„ ๋ฐ›์•„์˜ฌ๋•Œ HandlerMethodArgumentResolver ๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๊ฐ’์„ ๋ฐ”์ธ๋”ฉ ์‹œ์ผœ ๋ฐ›์•„์˜ต๋‹ˆ๋‹ค. HandlerMeth.. 2021. 1. 30.
[Git / GitHub] - git subtree ๋ช…๋ น์–ด ์•ˆ๋…•ํ•˜์„ธ์š”? ์ด์ „์— ์šด์˜ํ•˜๋˜ ๋ธ”๋กœ๊ทธ์™€ ์†Œ์Šค์ฝ”๋“œ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” GitHub๊ฐ€ ๋”ฐ๋กœ ์žˆ์Šต๋‹ˆ๋‹ค. ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ GitHub โœ” Git - subtree ์•ˆ๋…•ํ•˜์„ธ์š”, ์ด๋ฒˆ์— ์ •๋ฆฌํ•  ๋‚ด์šฉ์€ git์—์„œ subtree๋ฅผ ํ™œ์šฉํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์•ˆ์— ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ์ €์žฅํ•˜๊ธฐ ์ž…๋‹ˆ๋‹ค. ์œ„ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๋ฅผ ๋“ค์–ด๊ฐ€๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. ์œ„ ์‚ฌ์ง„์—์„œ ๋ณด์‹œ๋ฉด ๋ ˆํฌ์ง€ํ† ๋ฆฌ ๋‚ด๋ถ€์— ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์„ธ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๊ฐ€ ์ €์žฅ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. fastcampus-java-admin inflearn-docker inflearn-spring-basic ๋”ฐ๋ผ์„œ ์œ„์™€ ๊ฐ™์ด ํด๋” ์•ˆ์— ํด๋”๋ฅผ ์ €์žฅํ•ด๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. โœ” ์ค€๋น„๋ฌผ ์šฐ์„  ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๋‘ ๊ฐœ์˜ ๋ ˆํฌ์ง€ํ† ๋ฆฌ๊ฐ€ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค ๋ถ€๋ชจ Repository ์ž์‹ Repository ์—ฌ๊ธฐ์„œ ๋ถ€๋ชจ Repository๋Š” ro.. 2021. 1. 17.
ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค[Java] - H-Index(์ •๋ ฌ) programmers.co.kr/learn/courses/30/lessons/42747 ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - H-Index H-Index๋Š” ๊ณผํ•™์ž์˜ ์ƒ์‚ฐ์„ฑ๊ณผ ์˜ํ–ฅ๋ ฅ์„ ๋‚˜ํƒ€๋‚ด๋Š” ์ง€ํ‘œ์ž…๋‹ˆ๋‹ค. ์–ด๋Š ๊ณผํ•™์ž์˜ H-Index๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฐ’์ธ h๋ฅผ ๊ตฌํ•˜๋ ค๊ณ  ํ•ฉ๋‹ˆ๋‹ค. ์œ„ํ‚ค๋ฐฑ๊ณผ1์— ๋”ฐ๋ฅด๋ฉด, H-Index๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์ด ๊ตฌํ•ฉ๋‹ˆ๋‹ค. ์–ด๋–ค ๊ณผํ•™์ž๊ฐ€ ๋ฐœํ‘œ programmers.co.kr ์ฝ”๋“œ import java.util.Arrays; class Solution { public int solution(int[] citations) { int answer = 0; int size = citations.length; Arrays.sort(citations); int max = max(citations); for (int i = 0.. 2020. 12. 5.
ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค[Java] - ํ‚คํŒจ๋“œ ๋ˆ„๋ฅด๊ธฐ(2020 ์นด์นด์˜ค ์ธํ„ด์‹ญ) programmers.co.kr/learn/courses/30/lessons/67256 ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - ํ‚คํŒจ๋“œ ๋ˆ„๋ฅด๊ธฐ [1, 3, 4, 5, 8, 2, 1, 4, 5, 9, 5] "right" "LRLLLRLLRRL" [7, 0, 8, 2, 8, 3, 1, 5, 7, 6, 2] "left" "LRLLRRLLLRR" [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] "right" "LLRLLRLLRL" programmers.co.kr ์ฝ”๋“œ class Solution { public static String solution(int[] numbers, String hand) { StringBuilder sb = new StringBuilder(); int leftIndex = 10; // '*' =>.. 2020. 10. 3.
ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค[Java] - ์‚ผ๊ฐ ๋‹ฌํŒฝ์ด programmers.co.kr/learn/courses/30/lessons/68645 ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - ์‚ผ๊ฐ ๋‹ฌํŒฝ์ด 5 [1,2,12,3,13,11,4,14,15,10,5,6,7,8,9] 6 [1,2,15,3,16,14,4,17,21,13,5,18,19,20,12,6,7,8,9,10,11] programmers.co.kr ์ฝ”๋“œ class Solution { public static int[] solution(int n) { if(n == 1) { return new int[] {1}; } int answerLen = 3; for(int i=3; i 2020. 9. 26.
[Programmers] - ๋‘ ๊ฐœ ๋ฝ‘์•„์„œ ๋”ํ•˜๊ธฐ programmers.co.kr/learn/courses/30/lessons/68644 ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - ๋‘ ๊ฐœ ๋ฝ‘์•„์„œ ๋”ํ•˜๊ธฐ programmers.co.kr ์ฝ”๋“œ import java.util.*; class Solution { public static int[] solution(int[] numbers) { int numbersLen = numbers.length; Set hashSet = new HashSet(); for(int i=0; i 2020. 9. 20.
[SW Expert Academy] - (D2)1974. ์Šค๋„์ฟ  ๊ฒ€์ฆ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5Psz16AYEDFAUq&categoryId=AV5Psz16AYEDFAUq&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Scanner; public class Solution { static int map[][]; static boolean flag[]; /* ํ–‰(๊ฐ€๋กœ) ์ฒดํฌ */ public static boolean checkRow(int i) { flag = new boolean[9]; for(.. 2020. 8. 10.
[SW Expert Academy] - (D1)1933. ๊ฐ„๋‹จํ•œ N์˜ ์•ฝ์ˆ˜(Stream) https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5PhcWaAKIDFAUq&categoryId=AV5PhcWaAKIDFAUq&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Scanner; import java.util.stream.IntStream; public class ๊ฐ„๋‹จํ•œN์˜์•ฝ์ˆ˜_1933 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N .. 2020. 8. 9.
[SW Expert Academy] - (D1)2019. ๋”๋ธ”๋”๋ธ”(Stream) https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QDEX6AqwDFAUq&categoryId=AV5QDEX6AqwDFAUq&categoryType=CODE SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ์ฝ”๋“œ import java.util.Arrays; import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt.. 2020. 8. 8.
๋ฐ˜์‘ํ˜•