์ „์ฒด ๊ธ€

Spring/Spring ์ž…๋ฌธ

์Šคํ”„๋ง ์ž…๋ฌธ - (5) ์ •์  ์ปจํ…์ธ 

์Šคํ”„๋ง ์›น ๊ฐœ๋ฐœ ๊ธฐ์ดˆ -์ •์  ์ฝ˜ํ…์ธ  ๊ทธ๋ƒฅ ํŒŒ์ผ์„ ์›น๋ธŒ๋ผ์šฐ์ €์— ์ „๋‹ฌ -MVC์™€ ํ…œํ”Œ๋ฆฟ ์—”์ง„ Model/View/Controller , ํ…œํ”Œ๋ฆฟ ์—”์ง„ : html์„ ๋™์ ์œผ๋กœ ๋ฐ”๊พธ์–ด ๋ณด๋‚ด์คŒ ์„œ๋ฒ„์—์„œ ๋ณ€ํ˜•์—์„œ ๋ฐ”๊พธ์–ด ๋ณด๋ƒ„ -API Json ๋ฐ์ดํ„ฐ ๊ตฌ์กฐ ํฌ๋งท์œผ๋กœ ํด๋ผ์ด์–ธํŠธ์— ์ „๋‹ฌ https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/html/spring-boot-features.html#boot-features-spring-mvc-static-content Spring Boot Features Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, To..

Spring/Spring ์ž…๋ฌธ

์Šคํ”„๋ง ์ž…๋ฌธ - (4) ๋นŒ๋“œํ•˜๊ณ  ์‹คํ–‰ํ•˜๊ธฐ

๋นŒ๋“œํ•˜๊ณ  ์‹คํ–‰ํ•˜๊ธฐ ์ฝ˜์†”๋กœ ์ด๋™ 1. ./gradlew build 2. cd build/libs 3. java -jar hello-spring-0.0.1-SNAPSHOT.jar 4. ์‹คํ–‰ ํ™•์ธ ๋นŒ๋“œ ์„ฑ๊ณต .jar ํŒŒ์ผ ์„œ๋ฒ„์— ํ•˜๋‚˜๋งŒ ๋„ฃ์–ด๋‘๊ณ  ์‹คํ–‰ํ•˜๋ฉด ๊ฐ€๋™ ๋นŒ๋“œ,์ปดํŒŒ์ผ,๋ฐฐํฌ์˜ ๊ฐœ๋… https://velog.io/@leede418/CS-Compile-Link-Build-%EB%9E%80 [CS] Compile, Link, Build ๋ž€? CS ๊ธฐ์ดˆ๋ฅผ ๋‹ค์žก์„๊ฒธ Compile, Link, Build์— ๋Œ€ํ•ด ์•Œ์•„๋ณด์ž. velog.io

Algorithm/ํŒŒ์ด์ฌ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ

ํƒ์ƒ‰&์‹œ๋ฎฌ๋ ˆ์ด์…˜(string, 1์ฐจ์›, 2์ฐจ์› ๋ฆฌ์ŠคํŠธ ํƒ์ƒ‰ ) - 6. ๊ฒฉ์žํŒ ์ตœ๋Œ€ํ•ฉ

๋‚˜์˜ ํ’€์ด 2์ฐจ์› ๋ฐฐ์—ด ๋งŒ๋“ค๊ธฐ [[0]*N for i in range(N)] ๊ฐ•์˜ํ’€์ด K์ฐจ์› ๋ฐฐ์—ด ์ž…๋ ฅ๋ฐ›๊ธฐ

Algorithm/ํŒŒ์ด์ฌ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ

ํƒ์ƒ‰&์‹œ๋ฎฌ๋ ˆ์ด์…˜(string, 1์ฐจ์›, 2์ฐจ์› ๋ฆฌ์ŠคํŠธ ํƒ์ƒ‰ ) - 5. ์ˆ˜๋“ค์˜ ํ•ฉ

๋‚˜์˜ ํ’€์ด ๊ฐ•์˜ํ’€์ด ์ด์ค‘ for ๋ฌธ์„ ์‚ฌ์šฉํ•˜๊ฒŒ ๋˜๋ฉด ์‹œ๊ฐ„๋ณต์žก๋„ O(N²) ํฌ์ธํ„ฐ ๋ณ€์ˆ˜ ๋‘๊ฐœ๋ฅผ ์ด์šฉ

Algorithm/ํŒŒ์ด์ฌ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ

ํƒ์ƒ‰&์‹œ๋ฎฌ๋ ˆ์ด์…˜(string, 1์ฐจ์›, 2์ฐจ์› ๋ฆฌ์ŠคํŠธ ํƒ์ƒ‰ ) - 4. ๋‘ ๋ฆฌ์ŠคํŠธ ํ•ฉ์น˜๊ธฐ

๋‚˜์˜ ํ’€์ด ๊ฐ•์˜ ํ’€์ด ์ด๋ฏธ ์ •๋ ฌ๋˜์–ด์žˆ๋Š” ์ •๋ณด๋ฅผ ํ™œ์šฉํ•˜์ž ํฌ์ธํ„ฐ๋ณ€์ˆ˜ p1,p2 ๋ฅผ ์ด์šฉํ•˜์—ฌ ๋น„๊ต ํฌ์ธํ„ฐ๊ฐ’ ๋ณ€๊ฒฝํ•˜์—ฌ ๊ฐ’์ด๋™

Algorithm/ํŒŒ์ด์ฌ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ

ํƒ์ƒ‰&์‹œ๋ฎฌ๋ ˆ์ด์…˜(string, 1์ฐจ์›, 2์ฐจ์› ๋ฆฌ์ŠคํŠธ ํƒ์ƒ‰ ) - 3. ์นด๋“œ ์—ญ๋ฐฐ์น˜

๋‚˜์˜ ํ’€์ด ๊ฐ•์˜ ํ’€์ด ํŒŒ์ด์ฌ์—์„œ ๊ฐ’ ์Šค์™‘ ํ•˜๋Š”๋ฒ• a,b = b,a _ ์–ธ๋”๋ฐ” : ๋ณ€์ˆ˜์— ๊ฐ’์„ ๋Œ€์ž…ํ•˜์ง€์•Š๊ณ  ๋ฐ˜๋ณต

Algorithm/ํŒŒ์ด์ฌ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ

ํƒ์ƒ‰&์‹œ๋ฎฌ๋ ˆ์ด์…˜(string, 1์ฐจ์›, 2์ฐจ์› ๋ฆฌ์ŠคํŠธ ํƒ์ƒ‰ ) - 2. ์ˆซ์ž๋งŒ ์ถ”์ถœ

isdecimal() : ์ฃผ์–ด์ง„ ๋ฌธ์ž์—ด์ด ์ˆซ์ž(0~9)๋กœ ๋˜์–ด์žˆ๋Š”์ง€ ๊ฒ€์‚ฌ isdigit() : ์ˆซ์ž์ฒ˜๋Ÿผ ์ƒ๊ธด ๋ชจ๋“ ๊ธ€์ž , ์ง€์ˆ˜, 3² ๋“ฑ

hello_u
๐Ÿ˜œ