๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Sparta Coding Club/TIL

[TIL] #5 - 20231024 (์ŠคํŒŒ๋ฅดํƒ€ ์ฝ”๋”ฉ ํด๋Ÿฝ ์•ˆ๋“œ๋กœ์ด๋“œ 2๊ธฐ ์‚ฌ์ „ ์บ ํ”„)

by eun.24k 2023. 10. 25.

๐Ÿ“– Today I Learned

๐Ÿ”ฎ ํ•™์Šต ๋ฐ ๋…ธํŠธ ์ •๋ฆฌ

  • ์ฑ•ํ„ฐ 2 ์‹คํ–‰: ์˜ค๋Š˜๋„ ๋ชปํ–ˆ๋‹ค ๋ชปํ–ˆ์–ด... ๋ฏธ์ณค์ง€ ์ •๋ง ๋‚ด์ผ์€ ๊ผญํ•ด์•ผ๊ฒ ๋‹ค
  • ์ฑ•ํ„ฐ 3.5 ๋ฐ˜๋ณต๋ฌธ ๊ด€๋ จ ๊ณต๋ถ€ ๋ฐ ๋…ธํŠธ ์ •๋ฆฌ. ๋‹ค๋ฅธ ์–ธ์–ด ๋ฌธ๋ฒ•์ด๋ž‘ ํฐ ์ฐจ์ด๋ฅผ ๋Š๋ผ์ง€ ์•Š์•„์„œ ๊ทธ๋ƒฅ ์ญ‰ ํƒ€์ดํ•‘ ์น˜๋ฉด์„œ ๋ฐ›์•„๋“ค์˜€๋‹ค. ๊ทธ๋Ÿฐ๋ฐ ์ข€ ๋ฉ ๋•Œ๋ฆฌ๋ฉด์„œ ์ ์€ ๊ฒƒ ๊ฐ™๋‹น....
  • ์ฑ•ํ„ฐ 3.6 ํ•จ์ˆ˜ ๊ด€๋ จ ๊ณต๋ถ€ ๋ฐ ๋…ธํŠธ ์ •๋ฆฌ: ํ•จ์ˆ˜๋Š” ์–ด๋ ต์ง€ ์•Š์•˜๋‹ค. ์–‘๋„ ๋งŽ์ง€ ์•Š์•„์„œ ํ• ๋งŒ ํ–ˆ๋‹ค 
  • ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ณต์Šต: ์˜ค๋Š˜ ๋“œ๋””์–ด ์ „์— ํ’€์—ˆ์—ˆ๋˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ๋กœ ๋Œ์•„๊ฐ€์„œ ๋‹ค๋ฅธ ํ’€์ด๋ฅผ ์ฐพ์•„๋ณด๊ณ  ์ดํ•ดํ•˜๊ณ  ๊ณต๋ถ€ํ•˜๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์กŒ๋‹ค. .map{}์ด๋ผ๋Š” ํ•จ์ˆ˜๊ฐ€ ์ดํ•ด๊ฐ€ ์•ˆ๋˜์–ด์„œ ์กฐ์›๋“ค์—๊ฒŒ ๋ฌผ์–ด๋ดค๋Š”๋ฐ ๋„ˆ๋ฌด ์นœ์ ˆํ•˜๊ฒŒ ๋‹ต๋ณ€ํ•ด ์ฃผ์…จ๋‹ค. 

๐Ÿ’ก ์•Œ๊ณ ๋ฆฌ์ฆ˜ - ์ฝ”ํ‹€๋ฆฐ : ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ์ฝ”๋“œ ์นดํƒ€

[12912]

https://dailycoding24k.tistory.com/35

 

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค - ์ฝ”ํ‹€๋ฆฐ] ๋‘ ์ •์ˆ˜ ์‚ฌ์ด์˜ ํ•ฉ #12912

#12912 ๐ŸŽ„ Question ? https://school.programmers.co.kr/learn/courses/30/lessons/12912 class Solution { fun solution(a: Int, b: Int): Long { var answer: Long = 0 return answer } } ๐Ÿงฉ Thought Process 3์—์„œ 5๊นŒ์ง€ for ๋ฌธ ์‚ฌ์šฉ answer์— for๋ฌธ์— ๋“ค

dailycoding24k.tistory.com

[12943]

https://dailycoding24k.tistory.com/36

 

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค - ์ฝ”ํ‹€๋ฆฐ] ์ฝœ๋ผ์ธ  ์ถ”์ธก #12943

#12943 ๐ŸŽ„ Question ? https://school.programmers.co.kr/learn/courses/30/lessons/12943 class Solution { fun solution(num: Int): Int { var answer = 0 return answer } } ๐Ÿงฉ Thought Process ์ž…๋ ฅ๋œ ์ˆ˜๊ฐ€ ์ง์ˆ˜๋ผ๋ฉด 2๋กœ ๋‚˜๋ˆ•๋‹ˆ๋‹ค. ์ž…๋ ฅ๋œ ์ˆ˜๊ฐ€

dailycoding24k.tistory.com

[12919]

https://dailycoding24k.tistory.com/37

 

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค - ์ฝ”ํ‹€๋ฆฐ] ์„œ์šธ์—์„œ ๊น€์„œ๋ฐฉ ์ฐพ๊ธฐ #12919

#12919 ๐ŸŽ„ Question ? https://school.programmers.co.kr/learn/courses/30/lessons/12919 class Solution { fun solution(seoul: Array): String { var answer = "" return answer } } ๐Ÿงฉ Thought Process Kim์ด ์œ„์น˜ํ•œ ์ธ๋ฑ์Šค ์ฐพ๊ธฐ https://www.baeldung.com/k

dailycoding24k.tistory.com

โŒ› Comments

์ •๋ง ๋ฐฐ์›Œ์•ผํ• ๊ฒŒ ์ฐจ์•„์•” ๋งŽ๋‹ค๊ณ  ๋Š๊ผˆ๊ณ  ์˜ค๋Š˜ ์ƒˆ๋กœ ๋ฐฐ์šด๊ฒŒ ์žˆ๋Š”๊ฑฐ ๊ฐ™์•„์„œ ๋ฟŒ๋“ฏํ–ˆ๋‹ค.

๊ทธ๋Ÿฐ๋ฐ ์ •์ž‘ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ๋ฅผ ํ’€๋ฉด์„œ๋Š” ๋งŽ์ด ๋ฐฐ์šฐ์ง€ ๋ชปํ–ˆ๋‹ค.

์•„ ์˜ค๋Š˜ ๊ทธ๋ฆฌ๊ณ  ์กฐ์›๋ถ„๊ป˜์„œ ํ‹ฐ์Šคํ† ๋ฆฌ๋ฅผ ๋ฆฌ๋“œ๋ฏธ์— ๋„ฃ์„ ์ˆ˜ ์žˆ๋Š” ๋งํฌ๋ฅผ ๋ณด๋‚ด์ฃผ์…จ๋‹ค.

node js๋ฅผ ๋‹ค์šด๋ฐ›์•„์•ผ๋˜์„œ ๋‹ค์šด์„ ๋ฐ›์•˜๊ณ  ๋…ธํŠธ๋ถ์„ ๊ป๋‹ค ํ‚ค๋ผ๊ธธ๋ž˜ ๋‚ด์ผ ํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค.

์—ฐ๊ฒฐ๋˜๋ฉด ๊นƒํ—ˆ๋ธŒ๊ฐ€ ์–ด๋–ป๊ฒŒ ๋ณ€ํ• ์ง€ ์ข€ ๊ถ๊ธˆํ•˜๋‹น. ์˜ค๋Š˜ ์ •๋ง์ •๋ง ๊ธด ํ•˜๋ฃจ์˜€๋‹ค. 7์‹œ๋ฐ˜์— ์ผ์–ด๋‚˜์„œ ์ง€๊ธˆ ์ƒˆ๋ฒฝ 1์‹œ๋ฐ˜๊นŒ์ง€ ๊ฑฐ์˜ ์‰ฌ์ง€ ์•Š๊ณ  ๋ฌด์–ธ๊ฐˆ ํ–ˆ๋‹ค. ๋‚ด์ผ ์•„์นจ 9์‹œ์— ํ”ผํ‹ฐ ์žก์•„๋†จ๋Š”๋ฐ ๋Šฆ์ง€ ์•Š๊ฒŒ ๊ฐˆ ์ˆ˜ ์žˆ๊ฒ ์ง€.. :) ๋ฟ…!