The journey to becoming a developer

My future is created by what I do today, not tomorrow.

What I learned/CodeSquad Log

CodeSquad Day 13 : Programmers algorithms (4)

Millie 2022. 1. 20. 00:10

 

CodeSquad๐Ÿ”นDay 13

10:10~10:25 ๊ทธ๋ฃน ์Šคํฌ๋Ÿผ

10์‹œ์—๋Š” ์˜ค๋Š˜ ํ’€์–ด์•ผ ํ•˜๋Š” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ๋“ค์„ ํ™•์ธํ•˜๊ณ , 10์‹œ 10๋ถ„๋ถ€ํ„ฐ๋Š” ๊ฐ„๋‹จํžˆ ์ปจ๋””์…˜๊ณผ ์ƒํ™ฉ ๊ณต์œ ๋ฅผ ํ–ˆ๋‹ค. ์ด๋ฒˆ ์ฃผ ๋ฏธ์…˜์ด ์–ด๋ ค์› ๋˜ ๋งŒํผ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ๋Š” ์•ฝ๊ฐ„ ์‰ฌ์šด ๊ฒƒ์œผ๋กœ ๋ฐธ๋Ÿฐ์Šค ์กฐ์ ˆ์„ ํ•œ ๊ฒƒ ๊ฐ™์•˜๋‹ค. ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค์˜ ๋ ˆ๋ฒจ 1 ๋ฌธ์ œ์—ฌ์„œ ์กฐ๊ธˆ ๋จธ๋ฆฌ๋ฅผ ํ’€๊ฐ€๋™ํ•˜์ง„ ์•Š์•„๋„ ๋˜๋Š”(?) ๊ทธ๋Ÿฐ ๋ฌธ์ œ๋“ค 4๋ฌธ์ œ๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ์—ˆ๋‹ค. 

 

10:25~2:45 (4์‹œ๊ฐ„, ์ ์‹ฌ์‹œ๊ฐ„ + ํœด์‹ 1์‹œ๊ฐ„ ์ œ์™ธ 3์‹œ๊ฐ„) 

์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ๋Š” ์˜ค์ „์— 3๊ฐœ, ์˜คํ›„์— 1๊ฐœ๋ฅผ ํ’€์–ด์„œ ๋ชจ๋‘ ํ’€์—ˆ๊ณ  2์‹œ 45๋ถ„์— ์ œ์ถœํ–ˆ๋‹ค.

์˜ˆ์ „์— ํ’€์—ˆ๋˜ ๋ฌธ์ œ๋ผ๊ณ  ํ•ด๋„ ๋ช‡ ๋‹ฌ ์ „์— ํ‘ผ ๊ฒƒ๋“ค์ด๋ผ์„œ ์‹œ๊ฐ„์ด ์—„์ฒญ ์งง๊ฒŒ ๊ฑธ๋ฆฌ์ง„ ์•Š์•˜๋‹ค. ๋ง‰๋ง‰ํ•œ ๊ฒƒ๋„ ์žˆ์—ˆ๋‹ค. ๊ทธ๋ž˜๋„ ๋‹ค ํ’€์–ด๋ƒˆ๋‹ค. map์„ ์ข€ ๋” ์ž˜ ์“ฐ๊ณ  ์‹ถ๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“ค์—ˆ๋‹ค. 

์ œ์ถœํ•˜๊ณ  ๋ณด๋‹ˆ๊นŒ ์ •๋ง ์—„์ฒญ๋‚œ ์†๋„๋กœ ํ‘ผ ๋ถ„๋“ค์ด ๋งŽ์•˜๋‹ค. ์‹ฌ์ง€์–ด ์˜ค์ „์— ๋‹ค ํ•˜๊ณ  ์ œ์ถœํ•˜์‹  ๋ถ„๋“ค๋„ ์žˆ์—ˆ๋‹ค. ์•Œ๊ณ ๋ฆฌ์ฆ˜๋„ ๊พธ์ค€ํžˆ ํ•ด์„œ ์‹ค๋ ฅ์„ ๋†’์—ฌ์•ผ๊ฒ ๋‹ค. 

 

2:45~4:30 ํ•™์Šต

๋‹ค ํ’€๊ณ  ๋‚˜์„œ๋„ ์‹œ๊ฐ„์ด ๊ฝค ๋‚จ์•„์„œ, CS05 ๋ฏธ์…˜์—์„œ ๋ถ€์กฑํ•œ ์ง€์ ์„ ๋‹ค์‹œ ๋Œ์•„๋ณด๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์กŒ๋‹ค. 

์–ด์ œ JK์˜ ์ˆ˜์—…์˜ 1๋ถ€์—์„œ, ๊ฐœ๋ฐœ์ž๋กœ์„œ ์„ฑ์žฅํ•˜๊ธฐ ์œ„ํ•œ ํƒœ๋„ ์ค‘ ํ•„์š”ํ•œ ๊ฒƒ์ด "SMARTํ•œ ๋ชฉํ‘œ๋ฅผ ์งœ๋Š” ๊ฒƒ"์ด์—ˆ๋‹ค.

๊ทธ๋™์•ˆ ๋‚˜๋Š” ๋ชฉํ‘œ๋Š” ๋งŽ์ด ์„ธ์šฐ๋Š”๋ฐ ์ง€ํ‚จ ๊ฒƒ์€ ๋งŽ์ด ์—†์—ˆ๋‹ค. ์ด๊ฒƒ์ด ๋ฐ”๋กœ ๋‚ด๊ฐ€ ๋ชฉํ‘œ๋ฅผ SMARTํ•˜๊ฒŒ ์งœ์ง€ ์•Š์•„์„œ ๊ทธ๋žฌ๋˜ ๊ฒƒ์ด๋‹ค. 

Specific, Measurable, Achievable, Relevant, Time-Boxed. ์•ž์œผ๋กœ๋Š” ์ด 5๊ฐ€์ง€๋ฅผ ์—ผ๋‘์— ๋‘๊ณ  ์ข€ ์ œ๋Œ€๋กœ ๋ชฉํ‘œ๋ฅผ ์„ธ์›Œ ๋ณด๋ ค๊ณ  ํ•œ๋‹ค. 

์šด์˜์ฒด์ œ, ๋ฉ”๋ชจ๋ฆฌ ํ”„๋กœ์„ธ์Šค์— ๋Œ€ํ•œ ๊ธ€์„ ์ฝ๊ณ  ํ•™์Šตํ•˜๋Š” ์‹œ๊ฐ„์„ ๊ฐ€์กŒ๋‹ค.

 

4:30~6:00 ๊ทธ๋ฃน ๋ฆฌ๋ทฐ + ์ •๋ฆฌ

๊ฐ์ž ์–ด๋–ค ์‹์œผ๋กœ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ํ’€์—ˆ๋Š”์ง€๋„ ๊ฐ„๋‹จํžˆ ์ด์•ผ๊ธฐํ•˜๊ณ , ํ•ด๊ฒฐ์ด ์ž˜ ์•ˆ ๋˜๋Š” ๋ถ€๋ถ„์€ ๊ณต์œ ํ•ด์„œ ํ•ด๊ฒฐํ•ด ๋‚˜๊ฐ”๋‹ค.

์ด ๊ณผ์ •์—์„œ replace ๋ฉ”์„œ๋“œ, ์ •๊ทœ ํ‘œํ˜„์‹ ๋“ฑ ์ž์ž˜ํ•œ ์ง€์‹์ด ์Œ“์˜€๋‹ค. 

์ด๋ฒˆ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋‚œ์ด๋„๊ฐ€ ๊ทธ๋ฆฌ ๋†’์ง„ ์•Š์•„์„œ ๋ฆฌ๋ทฐ๋Š” ๊ธˆ๋ฐฉ ๋๋‚ฌ๋‹ค. ๊ทธ ์™ธ์— ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ํ•™์Šต์„ ์–ด๋–ป๊ฒŒ ํ• ์ง€, ์‹ค์ œ ์ฝ”๋”ฉํ…Œ์ŠคํŠธ๋Š” ์–ด๋–จ์ง€, ์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์–ธ์–ด ์„ ํƒ์— ๋Œ€ํ•œ ๊ณ ๋ฏผ ๋“ฑ์— ๋Œ€ํ•œ ๋Œ€ํ™”๊ฐ€ ์˜ค๊ณ ๊ฐ”๋‹ค. 

 

 

'What I learned > CodeSquad Log' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

CodeSquad Day 15 : CS10 (6/10)  (0) 2022.01.21
CodeSquad Day 14 : CS10 (6/10)  (0) 2022.01.21
CodeSquad Day 12 : CS10 (5/10)  (0) 2022.01.19
CodeSquad Day 11 : CS10 (5/10)  (0) 2022.01.17
CodeSquad Day 10 : CS10 (4/10)  (0) 2022.01.15