์ „์ฒด ๊ธ€

์ „์ฒด ๊ธ€

    [SWEA] ํŒŒ์ด์ฌ 1216. ํšŒ๋ฌธ2 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜

    ~๋ชฉ์ฐจ~ ๋ฌธ์ œ ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=3&contestProbId=AV14Rq5aABUCFAYi&categoryId=AV14Rq5aABUCFAYi&categoryType=CODE&problemTitle=&orderBy=RECOMMEND_COUNT&selectCodeLang=PYTHON&select-1=3&pageSize=10&pageIndex=2 SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ - ๋ฐœ๊ฒฌ๋œ ํšŒ๋ฌธ์ค‘ ๊ฐ€์žฅ ๊ธด ๊ธธ์ด๋ฅผ ๋ฐœ๊ฒฌ์‹œ๋งˆ๋‹ค ํƒ์š•์Šค๋Ÿฝ๊ฒŒ ..

    [SWEA] ํŒŒ์ด์ฌ 220. Magnetic | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜

    ~๋ชฉ์ฐจ~ ๋ฌธ์ œ ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=3&contestProbId=AV14hwZqABsCFAYD&categoryId=AV14hwZqABsCFAYD&categoryType=CODE&problemTitle=&orderBy=RECOMMEND_COUNT&selectCodeLang=PYTHON&select-1=3&pageSize=10&pageIndex=2 SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ - ํ–‰ ํฌ๊ธฐ(100)๋งŒํผ์˜ ๋ฆฌ์ŠคํŠธ ์„ ์–ธ - ํ•œ ํ–‰์˜ ๊ฐ ..

    [SWEA] ํŒŒ์ด์ฌ 2817. ๋ถ€๋ถ„ ์ˆ˜์—ด์˜ ํ•ฉ | BFS

    ~๋ชฉ์ฐจ~ ๋ฌธ์ œ ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=3&contestProbId=AV7IzvG6EksDFAXB&categoryId=AV7IzvG6EksDFAXB&categoryType=CODE&problemTitle=&orderBy=RECOMMEND_COUNT&selectCodeLang=PYTHON&select-1=3&pageSize=10&pageIndex=1 SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ - BFS๋ฅผ ์ด์šฉํ•˜์—ฌ ๊ฐ ์ˆซ์ž๋ฅผ ๋”ํ•œ ๊ฒฝ์šฐ, ๋”ํ•˜์ง€ ์•Š์€..

    [Python] ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค H-Index

    ~๋ชฉ์ฐจ~ ๋ฌธ์ œ ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œ https://school.programmers.co.kr/learn/courses/30/lessons/42747 ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ์ฝ”๋“œ ์ค‘์‹ฌ์˜ ๊ฐœ๋ฐœ์ž ์ฑ„์šฉ. ์Šคํƒ ๊ธฐ๋ฐ˜์˜ ํฌ์ง€์…˜ ๋งค์นญ. ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค์˜ ๊ฐœ๋ฐœ์ž ๋งž์ถคํ˜• ํ”„๋กœํ•„์„ ๋“ฑ๋กํ•˜๊ณ , ๋‚˜์™€ ๊ธฐ์ˆ  ๊ถํ•ฉ์ด ์ž˜ ๋งž๋Š” ๊ธฐ์—…๋“ค์„ ๋งค์นญ ๋ฐ›์œผ์„ธ์š”. programmers.co.kr ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ - ๋‚ด๋ฆผ์ฐจ์ˆœ์œผ๋กœ ์ธ์šฉ๋œ ๋…ผ๋ฌธ์„ ์ •๋ ฌ ํ›„ ์ˆœ์„œ๋Œ€๋กœ ๋ฐฉ๋ฌธ ์ฆ‰ (6, 1) -> (5, 2) -> (3, 3) -> (1, 4) -> (0, 5) ๋กœ ๋‚˜ํƒ€๋‚  ์ˆ˜ ์žˆ๋Š”๋ฐ, ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋œป์ด๋‹ค. 6๋ฒˆ ์ด์ƒ ์ธ์šฉ๋œ ๋…ผ๋ฌธ ์ˆ˜๋Š” 1๊ฐœ 5๋ฒˆ ์ด์ƒ ์ธ์šฉ๋œ ๋…ผ๋ฌธ ์ˆ˜๋Š” 2๊ฐœ 3๋ฒˆ ์ด์ƒ ์ธ์šฉ๋œ ๋…ผ๋ฌธ ์ˆ˜๋Š” 3๊ฐœ 1๋ฒˆ ์ด์ƒ ์ธ์šฉ๋œ ๋…ผ๋ฌธ ์ˆ˜๋Š” 4๊ฐœ 0๋ฒˆ ์ด์ƒ ..

    [SWEA] ํŒŒ์ด์ฌ 2806. N-Queen | ๋ฐฑํŠธ๋ž˜ํ‚น(Backtracking)

    ~๋ชฉ์ฐจ~ ๋ฌธ์ œ ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV7GKs06AU0DFAXB SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ - ์ „ํ˜•์ ์ธ Backtracking ๋ฌธ์ œ (DFS์—์„œ ๊ฐ€์ง€์น˜๊ธฐ) - ํŠธ๋ฆฌ ๊ตฌ์กฐ๋ฅผ ์ƒ๊ฐํ•˜๋ฉด์„œ ๊นŠ์ด๊ฐ€ ๊ณง ๋ณด๋“œ์˜ ํ–‰์ด๊ณ  ํ•ด๋‹น ํ–‰์—์„œ ๋ฐฐ์น˜ ๊ฐ€๋Šฅํ•œ ์—ด์„ ์ฐพ๋Š” ๊ฒƒ์ด๋‹ค. - ์œ„ ๊ทธ๋ฆผ์€ 3 x 3 ๋ณด๋“œ ์ผ ๋•Œ์˜ ํƒ์ƒ‰์„ ์‹œ๊ฐํ™” ํ•œ ๋ชจ์Šต์ด๋‹ค. - X ํ‘œ์‹œ๋Š” promisiong์— ๊ฑธ๋ ค์„œ ๋” ์ด์ƒ ๊นŠ์ด ํƒ์ƒ‰ํ•˜์ง€ ์•Š๊ณ  ๋„˜์–ด๊ฐ„๋‹ค. - DFS(3) ์ด๋ผ๋ฉด ..

    [Python] ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ๊ฒŒ์ž„ ๋งต ์ตœ๋‹จ๊ฑฐ๋ฆฌ | ํšจ์œจ์„ฑ

    ~๋ชฉ์ฐจ~ ๋ฌธ์ œ ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ ์ž‘์„ฑ ์ฝ”๋“œ ๋ฌธ์ œ https://school.programmers.co.kr/learn/courses/30/lessons/1844 ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค ์ฝ”๋“œ ์ค‘์‹ฌ์˜ ๊ฐœ๋ฐœ์ž ์ฑ„์šฉ. ์Šคํƒ ๊ธฐ๋ฐ˜์˜ ํฌ์ง€์…˜ ๋งค์นญ. ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค์˜ ๊ฐœ๋ฐœ์ž ๋งž์ถคํ˜• ํ”„๋กœํ•„์„ ๋“ฑ๋กํ•˜๊ณ , ๋‚˜์™€ ๊ธฐ์ˆ  ๊ถํ•ฉ์ด ์ž˜ ๋งž๋Š” ๊ธฐ์—…๋“ค์„ ๋งค์นญ ๋ฐ›์œผ์„ธ์š”. programmers.co.kr ๋ฌธ์ œ ํ•ด๊ฒฐ ํฌ์ธํŠธ - BFS๋กœ ํ’€์ด - ํšจ์œจ์„ฑ ํ–ฅ์ƒ 1) ์›ํ•˜๋Š” ์œ„์น˜์— ๋„๋‹ฌ์‹œ ๋ฐ”๋กœ ๋ฆฌํ„ด 2) ๊ฐˆ ์˜ˆ์ •์ธ ์œ„์น˜ ๋ฏธ๋ฆฌ ๋ฐฉ๋ฌธ ํ‘œ์‹œโญ๏ธ ๊ฐˆ ์˜ˆ์ •์ธ ์œ„์น˜๋ฅผ ๋ฏธ๋ฆฌ ๋ฐฉ๋ฌธ ํ‘œ์‹œํ•˜๋Š” ๊ฒƒ์„ ์ž์„ธํžˆ ์„ค๋ช…ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ๋‹ค์Œ๊ณผ ๊ฐ™์ด 3x3 map์ด ์กด์žฌํ•  ๋•Œ ์‹œ์ž‘์œ„์น˜๋Š” 0์œผ๋กœ ์„ค์ •๋˜๊ณ  ์ดˆ๋ก์ƒ‰, ๋…ธ๋ž€์ƒ‰ ํ•˜ํŠธ๋ฅผ que์— ๋„ฃ์„ ๊ฒƒ์ž…๋‹ˆ๋‹ค. 0 ๐Ÿ’›(1) 0 ๐Ÿ’š(1) โค๏ธ(1) 0 0..