The journey to becoming a developer

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

What I learned/CodeSquad Log

CodeSquad Day 48 : Front-end Week 5

Millie 2022. 3. 16. 23:37

 

CodeSquad๐Ÿ”นDay 48

SCSS Lint ๋“œ๋””์–ด!

 

How to Install Ruby on Windows 10 {2 Options}

Install Ruby on Windows 10 with this simple guide. Install Ruby using the RubyInstaller Tool or with the Linux subsystem and start developing on Windows!

phoenixnap.com

scss lint๋ฅผ ์ ์šฉํ•˜๊ณ  ์‹ถ์–ด์„œ ๋ฃจํŠธ ๊ฒฝ๋กœ์— scss-lint.yml ํŒŒ์ผ๋„ ๋งŒ๋“ค๊ณ , vs code extension์— ์žˆ๋Š” scss lint๋„ ์„ค์น˜ํ•ด ์ฃผ๊ณ , settings.json ํŒŒ์ผ์— ํ•„์š”ํ•œ ์ฝ”๋“œ๋„ ์ถ”๊ฐ€ํ•ด ์ฃผ์—ˆ์œผ๋‚˜ ์ ์šฉ๋˜์ง€ ์•Š์•˜๋‹ค.

๊ตฌ๊ธ€๋ง์„ ํ•˜๋‹ค๊ฐ€ ruby๋ฅผ ์„ค์น˜ํ•˜๋ฉด ๋œ๋‹ค๋Š” ๊ฒŒ์‹œ๋ฌผ์„ ๋ณด๊ณ  ๋”ฐ๋ผํ•ด๋ณด์•˜๋‹ค. ๋‹คํ–‰ํžˆ ์˜ค๋ž˜ ๊ฑธ๋ฆฌ์ง€ ์•Š์•˜๋‹ค. ruby๋ฅผ ์ € ์œ„์˜ ๊ธ€๋Œ€๋กœ ์ž˜ ์„ค์น˜ํ•œ ํ›„, gem install scss_lint ๋ช…๋ น์–ด๋กœ ์„ค์น˜ํ•ด์ฃผ๊ณ , vs code๋ฅผ ๊ป๋‹ค๊ฐ€ ์ผœ๋‹ˆ ์ž˜ ์ž‘๋™๋˜์—ˆ๋‹ค.

scss๋ฅผ ์ฒ˜์Œ ์ž‘์„ฑํ•  ๋•Œ๋ถ€ํ„ฐ lint๊ฐ€ ์ž‘๋™๋˜์—ˆ์œผ๋ฉด ์ข‹์•˜์„ํ…๋ฐ ์ด๋ฏธ ๋‹ค ๋งŒ๋“ค๊ณ  ๋‚˜์„œ ์„ค์น˜ํ•˜๋‹ˆ ๊ณ ์น  ๊ฒŒ ์‚ฐ๋”๋ฏธ์ด๋‹ค. ๊ทธ๋ž˜๋„ ์ ์šฉ์ด ๋˜์–ด์„œ ์ข‹๋‹ค.

๊ฒŒ๋”ํƒ€์šด์—์„œ ์‚ฌ๋žŒ๋“ค๊ณผ ์ด์•ผ๊ธฐํ•˜๋‹ค๊ฐ€ ์ฝœ๋ผ๊ฐ€ lint๋Š” ํšŒ์‚ฌ์—์„œ ๋ฌด์กฐ๊ฑด ์‚ฌ์šฉํ•œ๋‹ค๊ณ  ํ–ˆ๋‹ค. lint ํ™˜๊ฒฝ ๊ตฌ์ถ•๊ณผ ์‚ฌ์šฉ์— ๋ฏธ๋ฆฌ ์ต์ˆ™ํ•ด์ง€๋ฉด ์ข‹์„ ๊ฒƒ์ด๋‹ค.

 

Mission & PR & Group Review

์˜ค์ „ 10์‹œ์— ๋ชจ์—ฌ ์ŠคํŠธ๋ ˆ์นญ๋„ ํ•˜๊ณ , ์Šคํฌ๋Ÿผ๋„ ํ–ˆ๋‹ค. ์ ์‹ฌ ์‹œ๊ฐ„ ์ „๊นŒ์ง€๋Š” JS๋ฅผ ์ด์šฉํ•ด์„œ ๊ฒ€์ƒ‰์ฐฝ ๊ตฌํ˜„์— ์ง‘์ค‘ํ–ˆ๋‹ค.

PR์„ ๋ณด๋‚ด๊ธฐ ์œ„ํ•ด์„œ Readme๋„ ์ •๋ฆฌํ•ด์„œ ์ž‘์„ฑํ•ด ๋ณด์•˜๋‹ค.

์˜คํ›„ 5์‹œ๋ถ€ํ„ฐ 6์‹œ๊นŒ์ง€ ๊ทธ๋ฃน ๋ฆฌ๋ทฐ ์‹œ๊ฐ„. ์˜ค๋Š˜๋„ ํ•œ ๋ช…์”ฉ ๋Œ์•„๊ฐ€๋ฉด์„œ ์ž์‹ ์ด ํ•œ ๊ฒƒ์— ๋Œ€ํ•ด์„œ ์„ค๋ช…ํ–ˆ๋‹ค. ๋‚˜๋Š” ์ฃผ๋กœ ๊ฒ€์ƒ‰์ฐฝ ๋ถ€๋ถ„ ์–ด๋–ป๊ฒŒ ๊ตฌํ˜„ํ•˜๊ณ  ์žˆ๋Š”์ง€์— ๋Œ€ํ•ด์„œ ์„ค๋ช…ํ–ˆ๋‹ค.

์ฟ ํŒก ํด๋ก  ๋ฐ๋ชจ๋ฅผ ๋งŒ๋“ค์–ด ๋ณด์•˜๋‹ค.

๊ทธ๋ฃน ๋ฆฌ๋ทฐ๋ฅผ ํ•˜๊ณ  ๋‚˜์„œ ๋‹ค๋ฅธ ๋ถ„๋“ค์ด ํ•œ ๊ฒƒ๋“ค์„ ํ†ตํ•ด ์ธ์‚ฌ์ดํŠธ๋ฅผ ์ข€ ๋” ์–ป์€ ํ›„ PR์„ ๋ณด๋ƒˆ๋‹ค. ๋ฐฉ๊ธˆ ๋ฆฌ๋ทฐ๋ฅผ ๋ฐ›์•˜๋Š”๋ฐ ์ฒด๋ ฅ์ด ๊ดœ์ฐฎ์œผ๋ฉด ๋ฐ”๋กœ ์ ์šฉํ•ด ๋ณด๋ ค๊ณ  ํ–ˆ์ง€๋งŒ ์˜ค๋Š˜ ์ปจ๋””์…˜์ด ๊ทธ๋‹ฅ ์ข‹์ง€ ์•Š์•„์„œ ์˜ค๋Š˜์€ ์‰ฌ๊ณ , ๋‚ด์ผ ์•„์นจ์— ์ ์šฉํ•ด ๋ณผ ๊ฒƒ์ด๋‹ค.

 

Algorithm

์•Œ๊ณ ๋ฆฌ์ฆ˜ ์Šคํ„ฐ๋””์—์„œ ์ •ํ•œ ์Šค์ผ€์ฅด๋Œ€๋กœ ์˜ค๋Š˜์˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ 1๊ฐœ ํ’€์—ˆ๋‹ค. ๋‚ด์ผ ์•„์นจ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์Šคํ„ฐ๋””์—์„œ๋Š” ๋‘ ๊ฐœ์˜ ๋ฌธ์ œ๋ฅผ ๋‹ค๋ฃฐ ์˜ˆ์ •์ด๋‹ค.

 

์ฝ”๋”ฉํ…Œ์ŠคํŠธ ์—ฐ์Šต - ์ตœ์†Œ์ง์‚ฌ๊ฐํ˜•

[[10, 7], [12, 3], [8, 15], [14, 7], [5, 15]] 120 [[14, 4], [19, 6], [6, 16], [18, 7], [7, 11]] 133

programmers.co.kr


๋‚ฎ์—๋Š” ์ปจ๋””์…˜์ด ์ข‹์•˜๋Š”๋ฐ ๋ฐค์ด ๋ ์ˆ˜๋ก ๋งŽ์ด ํ”ผ๊ณคํ•ด์กŒ๋‹ค. ๋ณดํ†ต  ๋ฐค 12์‹œ๊นŒ์ง€๋Š” ์ฒด๋ ฅ์ด ๋‚จ์•„์žˆ์—ˆ๋Š”๋ฐ ์˜ค๋Š˜์€ ์›ฌ์ผ๋กœ 11์‹œ๊ฐ€ ๋˜๋‹ˆ ํž˜๋“ค์–ด์กŒ๋‹ค. ์กธ๋ฆฌ๋‹ค๊ธฐ๋ณด๋‹ค๋Š” ๋ชธ์ด ํ”ผ๊ณคํ•ดํ•˜๋Š” ๋Š๋‚Œ์ด๋‹ค. ๋งค์ผ ๋งŒ๋ณด๋ฅผ ๊ฑท๋Š” ๋‹ค๋ฆฌ๊ฐ€ ์˜ค๋Š˜๋”ฐ๋ผ ์ข€ ๋ป๊ทผํ•˜๋‹ค. ์˜ค๋Š˜์€ ์ผ์ฐ ์ž๊ณ , ๋‚ด์ผ ์ผ์ฐ ์ผ์–ด๋‚˜์„œ ์˜ค๋Š˜ ํ•˜๋ ค๊ณ  ํ–ˆ๋˜ ์ผ๋“ค์„ ์ข€ ์ฒ˜๋ฆฌํ•ด์•ผ๊ฒ ๋‹ค. ์ด์ฐธ์— ๊ธฐ์ƒ ์‹œ๊ฐ„์„ ์ข€ ๋” ๋‹น๊ธฐ๋Š” ๊ฒƒ๋„ ์ข‹๊ฒ ๋‹ค.

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

CodeSquad Day 51 : Front-end Week 6  (0) 2022.03.22
CodeSquad Day 49 : Front-end Week 5  (0) 2022.03.18
CodeSquad Day 47 : Front-end Week 5  (0) 2022.03.16
CodeSquad Day 46 : Front-end Week 5  (0) 2022.03.15
CodeSquad Day 44 : Pair Programming  (0) 2022.03.11