Skip to content

[chapse57] Week 2#2689

Merged
chapse57 merged 6 commits into
DaleStudy:mainfrom
chapse57:main
Jul 4, 2026
Merged

[chapse57] Week 2#2689
chapse57 merged 6 commits into
DaleStudy:mainfrom
chapse57:main

Conversation

@chapse57

@chapse57 chapse57 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

๋‹ต์•ˆ ์ œ์ถœ ๋ฌธ์ œ

โ€ป ์ด์ „ PR(#2661)์ด ์•„์ง ๋ฏธ๋จธ์ง€ ์ƒํƒœ๋ผ 1์ฃผ์ฐจ ์ปค๋ฐ‹๋„ ํ•จ๊ป˜ ํฌํ•จ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

  • Contains Duplicate (Week 1)
  • Two Sum (Week 1)
  • Top K Frequent Elements (Week 1)
  • Valid Anagram (Week 2)
  • Group Anagrams (Week 2)

์ž‘์„ฑ์ž ์ฒดํฌ ๋ฆฌ์ŠคํŠธ

  • Projects์˜ ์˜ค๋ฅธ์ชฝ ๋ฒ„ํŠผ(โ–ผ)์„ ๋ˆŒ๋Ÿฌ ํ™•์žฅํ•œ ๋’ค, Week๋ฅผ ํ˜„์žฌ ์ฃผ์ฐจ๋กœ ์„ค์ •ํ•ด์ฃผ์„ธ์š”.
  • ๋ฌธ์ œ๋ฅผ ๋ชจ๋‘ ํ‘ธ์‹œ๋ฉด ํ”„๋กœ์ ํŠธ์—์„œ Status๋ฅผ In Review๋กœ ์„ค์ •ํ•ด์ฃผ์„ธ์š”.
  • ์ฝ”๋“œ ๊ฒ€ํ† ์ž 1๋ถ„ ์ด์ƒ์œผ๋กœ๋ถ€ํ„ฐ ์Šน์ธ์„ ๋ฐ›์œผ์…จ๋‹ค๋ฉด PR์„ ๋ณ‘ํ•ฉํ•ด์ฃผ์„ธ์š”.

๊ฒ€ํ† ์ž ์ฒดํฌ ๋ฆฌ์ŠคํŠธ

Important

๋ณธ์ธ ๋‹ต์•ˆ ์ œ์ถœ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ ๋‹ค๋ฅธ ๋ถ„ PR ํ•˜๋‚˜ ์ด์ƒ์„ ๋ฐ˜๋“œ์‹œ ๊ฒ€ํ† ๋ฅผ ํ•ด์ฃผ์…”์•ผ ํ•ฉ๋‹ˆ๋‹ค!

  • ๋ฐ”๋กœ ์ด์ „์— ์˜ฌ๋ผ์˜จ PR์— ๋ณธ์ธ์„ ์ฝ”๋“œ ๋ฆฌ๋ทฐ์–ด๋กœ ์ถ”๊ฐ€ํ•ด์ฃผ์„ธ์š”.
  • ๋ณธ์ธ์ด ๊ฒ€ํ† ํ•ด์•ผํ•˜๋Š” PR์˜ ๋‹ต์•ˆ ์ฝ”๋“œ์— ํ”ผ๋“œ๋ฐฑ์„ ์ฃผ์„ธ์š”.
  • ํ† ์š”์ผ ์ „๊นŒ์ง€ PR์„ ๋ณ‘ํ•ฉํ•  ์ˆ˜ ์žˆ๋„๋ก ์Šน์ธํ•ด์ฃผ์„ธ์š”.

@dalestudy

dalestudy Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

๐Ÿ“Š chapse57 ๋‹˜์˜ ํ•™์Šต ํ˜„ํ™ฉ

์ด๋ฒˆ ์ฃผ ์ œ์ถœ ๋ฌธ์ œ

๋ฌธ์ œ ๋‚œ์ด๋„ ์œ ํ˜• ๋ถ„์„
contains-duplicate Easy โš ๏ธ ์œ ํ˜• ๋ถˆ์ผ์น˜
group-anagrams Medium โœ… ์˜๋„ํ•œ ์œ ํ˜•
top-k-frequent-elements Medium โš ๏ธ ์œ ํ˜• ๋ถˆ์ผ์น˜
two-sum Easy โœ… ์˜๋„ํ•œ ์œ ํ˜•
valid-anagram Easy โš ๏ธ ์œ ํ˜• ๋ถˆ์ผ์น˜

๋ˆ„์  ํ•™์Šต ์š”์•ฝ

  • ํ’€์ดํ•œ ๋ฌธ์ œ: 3 / 75๊ฐœ
  • ์ด๋ฒˆ ์ฃผ ์œ ํ˜• ์ผ์น˜์œจ: 40% (5๋ฌธ์ œ ์ค‘ 2๋ฌธ์ œ ์ผ์น˜)

๋ฌธ์ œ ํ’€์ด ํ˜„ํ™ฉ

์นดํ…Œ๊ณ ๋ฆฌ ์ง„ํ–‰๋„ ์™„๋ฃŒ
Heap โ– โ– โ–กโ–กโ–กโ–กโ–ก 1 / 3 (Medium 1)
Array โ– โ–กโ–กโ–กโ–กโ–กโ–ก 2 / 10 (Easy 2)
Binary โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 5 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ
Dynamic Programming โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 11 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ
Graph โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 8 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ
Interval โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 5 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ
Linked List โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 6 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ
Matrix โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 4 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ
String โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 10 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ
Tree โ–กโ–กโ–กโ–กโ–กโ–กโ–ก 0 / 14 โ† ์•„์ง ์‹œ์ž‘ ์•ˆ ํ•จ

๐Ÿค– ์ด ๋Œ“๊ธ€์€ GitHub App์„ ํ†ตํ•ด ์ž๋™์œผ๋กœ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ”ข API ์‚ฌ์šฉ๋Ÿ‰ (gpt-5-nano)
์š”์ฒญ ์ž…๋ ฅ ํ† ํฐ ์ถœ๋ ฅ ํ† ํฐ ํ•ฉ๊ณ„ ๋น„์šฉ
1 1,183 196 1,379 $0.000138
2 1,498 190 1,688 $0.000151
3 1,499 254 1,753 $0.000177
ํ•ฉ๊ณ„ 4,180 640 4,820 $0.000465

@seongmin36 seongmin36 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2์ฃผ์ฐจ๋„ ์ˆ˜๊ณ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค! ์ œ๊ฐ€ ๋“œ๋ฆฐ ํ”ผ๋“œ๋ฐฑ์ด ๋„์›€์ด ๋˜์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค.

Comment thread valid-anagram/chapse57.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s์™€ t๋ฅผ ์„œ๋กœ ์ •๋ ฌํ•ด์„œ ๋น„๊ตํ•˜๋Š” ๋ฐฉ์‹์„ ์„ ํƒํ•˜์…จ๋„ค์š”! ์ฝ”๋“œ๊ฐ€ ์ง๊ด€์ ์ด๊ณ  ๊น”๋”ํ•ฉ๋‹ˆ๋‹ค.
๋‹ค๋งŒ ์ด ๋ฐฉ์‹์€ sort๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— O(n log n)๋งŒํผ์˜ ์‹œ๊ฐ„๋ณต์žก๋„๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
์ €๋Š” ์ฃผ์–ธ์–ด๊ฐ€ js๊ธฐ ๋•Œ๋ฌธ์— Map์„ ์‚ฌ์šฉํ•ด์„œ ํ•ด๊ฒฐํ–ˆ๊ณ , python์—์„œ๋Š” ์ด์™€ ์œ ์‚ฌํ•œ dictionary๋ฅผ ์‚ฌ์šฉํ•ด O(n)์œผ๋กœ ์ตœ์ ํ™”ํ•ด๋ณผ ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

  • ํ•ด๊ฒฐ ๋ฐฉ์‹ : { ๋ฌธ์ž(key) : ๊ฐœ์ˆ˜(value) }์˜ ํ˜•ํƒœ์˜ Dictionary๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. s์™€ t๋ฅผ ์ˆœํšŒํ•˜๋ฉด์„œ ๊ฐ ๋ฌธ์ž์˜ ๋“ฑ์žฅ ํšŸ์ˆ˜๋ฅผ count์— ๋„ฃ์–ด ๊ฐฏ์ˆ˜๋งŒ์œผ๋กœ ๋‘ Dictionary๊ฐ€ ์ผ์น˜ํ•œ์ง€ ํŒ๋ณ„ํ•˜๋Š” ๋ฐฉ๋ฒ•์ž…๋‹ˆ๋‹ค.

Comment thread valid-anagram/chapse57.py Outdated
return sorted(s) == sorted(t)



No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ง€๊ธˆ valid-anagram/chapse57.py ํŒŒ์ผ ๋์— ๊ฐœํ–‰(์ค„๋ฐ”๊ฟˆ)์ด 3์ค„ ์ด์ƒ์ด๋ผ์„œ ci๋ ˆ๋ฒจ์—์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ถˆํ•„์š”ํ•œ ๊ณต๋ฐฑ์„ ์ค„์ด๊ณ  1์ค„๋งŒ ๋‚จ๊ฒจ์ฃผ์‹œ๋ฉด ๋ฉ๋‹ˆ๋‹ค. ์ด ๋ถ€๋ถ„์„ ์ฝ”๋“œ ๋กœ์ง๊ณผ ํ•จ๊ป˜ ์ˆ˜์ •ํ•ด์ฃผ์‹œ๋ฉด ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@parkhojeong parkhojeong left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค~!
์ง€๋‚œ ์ฃผ์ฐจ๋„ ํ•จ๊ป˜ ํ’€์–ด์ฃผ์‹  ๊ฑฐ ๊ฐ™๋„ค์š”! PR ์„ค๋ช…์— ํ‘ธ์‹  ๋ฌธ์ œ์™€ 1์ฃผ์ฐจ๋„ ํฌํ•จ๋˜์—ˆ๋‹ค๋Š” ๋‚ด์šฉ์„ ์ถ”๊ฐ€ํ•ด์ฃผ์‹œ๋ฉด ์ข‹์„ ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค~

Comment on lines 7 to 10

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bruth force๋กœ ์‹œ๊ฐ„๋ณต์žก๋„๊ฐ€ O(n^2) ์ด๋ผ์„œ ํ•ด์‹œ ๋งต/์…‹ ๋“ฑ์„ ํ™œ์šฉํ•ด์„œ ๊ฐœ์„ ํ•ด๋ณด์…”๋„ ์ข‹์„ ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค!

Comment on lines 9 to 14

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fallback ๊ฐ’์„ ์‚ฌ์šฉํ•ด๋ณด์…”๋„ ์ข‹์„ ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค!
count[n] = count.get(n, 1) + 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ๋ฌธ์ œ๋Š” 5์ฃผ์ฐจ ๋ฌธ์ œ์ธ ๊ฑฐ ๊ฐ™๋„ค์š”. ์ฃผ์ฐจ๋ณ„ ๋ฌธ์ œ๋Š” ์ฐธ๊ณ ๋กœ ์—ฌ๊ธฐ์„œ ๋ณด์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค http://github.com/orgs/DaleStudy/projects/6/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿท๏ธ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํŒจํ„ด ๋ถ„์„

  • ํŒจํ„ด: Brute Force
  • ์„ค๋ช…: ์ค‘์ฒฉ ๋ฃจํ”„๋ฅผ ์ด์šฉํ•ด ๋ชจ๋“  ์Œ์„ ๋น„๊ตํ•˜๋Š” ๊ฐ€์žฅ ๊ธฐ์ดˆ์ ์ธ ํƒ์ƒ‰ ๋ฐฉ์‹์œผ๋กœ ์ค‘๋ณต ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. ๋ณดํ†ต ํšจ์œจ์„ฑ์€ ๋‚ฎ์•„ ๋Œ€๊ทœ๋ชจ ์ž…๋ ฅ์— ๋น„ํšจ์œจ์ ์ž…๋‹ˆ๋‹ค.

๐Ÿ“Š ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„ ๋ถ„์„

๋ณต์žก๋„
Time O(n^2)
Space O(1)

ํ”ผ๋“œ๋ฐฑ: ์ค‘๋ณต ์—ฌ๋ถ€๋ฅผ ์„ ํ˜• ์‹œ๊ฐ„์œผ๋กœ ํ™•์ธํ•˜๋ ค๋ฉด ํ•ด์‹œ์…‹ ์‚ฌ์šฉ์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค.

๊ฐœ์„  ์ œ์•ˆ: ํ˜„์žฌ ๊ตฌํ˜„์€ ์ตœ์•…์˜ ๊ฒฝ์šฐ ์‹œ๊ฐ„ ๋ณต์žก๋„๊ฐ€ O(n^2)์— ํ•ด๋‹นํ•˜๋ฏ€๋กœ ํ•ด์‹œ๋ฅผ ์ด์šฉํ•œ ์„ ํ˜• ํƒ์ƒ‰์œผ๋กœ ๊ฐœ์„  ๊ฐ€๋Šฅ

๐Ÿ’ก ํ’€์ด์— ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„๋ฅผ ์ฃผ์„์œผ๋กœ ๋‚จ๊ฒจ๋ณด์„ธ์š”!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿท๏ธ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํŒจํ„ด ๋ถ„์„

  • ํŒจํ„ด: Hash Map / Hash Set, Greedy
  • ์„ค๋ช…: ๋ฌธ์ž์—ด์„ ์ •๋ ฌํ•œ ํ‚ค๋ฅผ ํ•ด์‹œ ๋งต์— ๋งคํ•‘ํ•ด ๊ทธ๋ฃนํ™”ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์ค‘๋ณต์„ ์ œ๊ฑฐํ•˜๊ณ  ๋ฌถ๋Š” ํŒจํ„ด์ด๋‹ค. ํ‚ค ์ƒ์„ฑ๊ณผ ๋งต ์—…๋ฐ์ดํŠธ๋กœ ๊ทธ๋ฃน์„ ๊ตฌ์„ฑํ•˜๋Š” ์ „ํ˜•์  ํ•ด์‹œ ๊ธฐ๋ฐ˜ ํŒจํ„ด์ž…๋‹ˆ๋‹ค.

๐Ÿ“Š ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„ ๋ถ„์„

๋ณต์žก๋„
Time O(n * k log k)
Space O(n * k)

ํ”ผ๋“œ๋ฐฑ: ์ •๋ ฌ ๋Œ€์‹  ๊ณ„์ˆ˜ ๊ธฐ๋ฐ˜ ํ‚ค๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋” ๋‚˜์€ ์ƒ์ˆ˜์™€ ํ•จ๊ป˜ O(n * k) ์„ฑ๋Šฅ ๊ฐ€๋Šฅ

๊ฐœ์„  ์ œ์•ˆ: ํ˜„์žฌ ๊ตฌํ˜„์ด ์ ์ ˆํ•ด ๋ณด์ž…๋‹ˆ๋‹ค.

๐Ÿ’ก ํ’€์ด์— ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„๋ฅผ ์ฃผ์„์œผ๋กœ ๋‚จ๊ฒจ๋ณด์„ธ์š”!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿท๏ธ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํŒจํ„ด ๋ถ„์„

  • ํŒจํ„ด: Hash Map / Hash Set, Sorting
  • ์„ค๋ช…: ํ•ด๋‹น ์ฝ”๋“œ๋Š” ๋จผ์ € ํ•ด์‹œ ๋งต์œผ๋กœ ๊ฐ ์›์†Œ์˜ ๋“ฑ์žฅ ํšŸ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•˜๊ณ , ๋“ฑ์žฅ ํšŸ์ˆ˜๋ฅผ ๊ธฐ์ค€์œผ๋กœ ๋‚ด๋ฆผ์ฐจ sortingํ•˜์—ฌ ์ƒ์œ„ k๊ฐœ๋ฅผ ์„ ํƒํ•œ๋‹ค. ๋”ฐ๋ผ์„œ Hash Map๊ณผ(๋ฅผ ์ด์šฉํ•œ) ์ •๋ ฌ ํŒจํ„ด์ด ์ฃผ๋กœ ๋ณด์ธ๋‹ค.

๐Ÿ“Š ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„ ๋ถ„์„

๋ณต์žก๋„
Time O(n log n)
Space O(n)

ํ”ผ๋“œ๋ฐฑ: ์นด์šดํŠธ ๋งต ๊ตฌ์ถ•๊ณผ ์ •๋ ฌ์œผ๋กœ ์ „์ฒด์ ์œผ๋กœ ํ•ฉ๋ฆฌ์ ์ด์ง€๋งŒ, ๋” ๋น ๋ฅธ ๋ฐฉ์‹์œผ๋กœ๋Š” ํž™์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ฐœ์„  ์ œ์•ˆ: ํ˜„์žฌ ๊ตฌํ˜„์ด ์ ์ ˆํ•ด ๋ณด์ž…๋‹ˆ๋‹ค.

๐Ÿ’ก ํ’€์ด์— ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„๋ฅผ ์ฃผ์„์œผ๋กœ ๋‚จ๊ฒจ๋ณด์„ธ์š”!

Comment thread two-sum/chapse57.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿท๏ธ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํŒจํ„ด ๋ถ„์„

  • ํŒจํ„ด: Hash Map / Hash Set
  • ์„ค๋ช…: ํ•ด์‹œ ๋งต์„ ์ด์šฉํ•œ ์กฐํšŒ๋กœ ๋ณด์™„ํ•˜๋Š” ํŒจํ„ด์œผ๋กœ, ๊ฐ ์›์†Œ์— ๋Œ€ํ•ด ํƒ€๊นƒ ์ฐจ์ด๋ฅผ ์ด๋ฏธ ๋ณธ ๊ฐ’์œผ๋กœ ํ™•์ธํ•˜๊ณ  ํ•ด๋‹น ์ธ๋ฑ์Šค๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ๋ฐฉ์‹์ด๋‹ค. ๋‹จ์ผ ์ˆœํšŒ๋ฅผ ํ†ตํ•ด ํ•ด๊ฒฐํ•˜๋Š” Two Sum์˜ ๋Œ€ํ‘œ์  ํŒจํ„ด์ด๋‹ค.

๐Ÿ“Š ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„ ๋ถ„์„

๋ณต์žก๋„
Time O(n)
Space O(n)

ํ”ผ๋“œ๋ฐฑ: ํ•ด์‹œ๋งต ์‚ฌ์šฉ์œผ๋กœ ์‹œ๊ฐ„ ๋ณต์žก๋„๋ฅผ ์ตœ์ ํ™”ํ–ˆ์Šต๋‹ˆ๋‹ค.

๊ฐœ์„  ์ œ์•ˆ: ํ˜„์žฌ ๊ตฌํ˜„์ด ์ ์ ˆํ•ด ๋ณด์ž…๋‹ˆ๋‹ค.

๐Ÿ’ก ํ’€์ด์— ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„๋ฅผ ์ฃผ์„์œผ๋กœ ๋‚จ๊ฒจ๋ณด์„ธ์š”!

Comment thread valid-anagram/chapse57.py

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๐Ÿท๏ธ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํŒจํ„ด ๋ถ„์„

  • ํŒจํ„ด: Binary Search, Hash Map / Hash Set, Greedy, Divide and Conquer, Two Pointers, Sliding Window, Fast & Slow Pointers, BFS, DFS, Backtracking, Dynamic Programming, Monotonic Stack, Heap / Priority Queue, Union Find, Trie, Bit Manipulation
  • ์„ค๋ช…: ์ฃผ์–ด์ง„ ์ฝ”๋“œ๋Š” ๋‘ ๋ฌธ์ž์—ด์˜ ์•„๋‚˜๊ทธ๋žจ ์—ฌ๋ถ€๋ฅผ ๊ฐ„๋‹จํžˆ ๋น„๊ตํ•˜๋Š” ๊ฒƒ์œผ๋กœ, ๋ฌธ์ž ์ •๋ ฌ ํ›„ ๋™์ผ ์—ฌ๋ถ€๋ฅผ ๋น„๊ตํ•ฉ๋‹ˆ๋‹ค. ์ •๋ ฌ ์ž์ฒด๊ฐ€ ๊ธฐ๋ณธ์ ์œผ๋กœ ๋น„๊ต๋ฅผ ์œ„ํ•œ ์ •๋ ฌ ๊ธฐ๋ฐ˜์˜ ์ ‘๊ทผ์ด๋ฉฐ, ์›์†Œ์˜ ์กด์žฌ ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•˜๋Š” ๊ฐ„์ ‘์  ํŒจํ„ด์œผ๋กœ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๐Ÿ“Š ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„ ๋ถ„์„

๋ณต์žก๋„
Time O(n log n)
Space O(n)

ํ”ผ๋“œ๋ฐฑ: ์ •๋ ฌ ๋Œ€์‹  ์นด์šดํŠธ ๋ฐฐ์—ด(์•ŒํŒŒ๋ฒณ ์ˆ˜)์œผ๋กœ O(n) ์‹œ๊ฐ„์œผ๋กœ ๊ฐœ์„  ๊ฐ€๋Šฅ

๊ฐœ์„  ์ œ์•ˆ: ํ˜„์žฌ ๊ตฌํ˜„์ด ์ ์ ˆํ•ด ๋ณด์ž…๋‹ˆ๋‹ค.

๐Ÿ’ก ํ’€์ด์— ์‹œ๊ฐ„/๊ณต๊ฐ„ ๋ณต์žก๋„๋ฅผ ์ฃผ์„์œผ๋กœ ๋‚จ๊ฒจ๋ณด์„ธ์š”!

@chapse57 chapse57 merged commit 991dc65 into DaleStudy:main Jul 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants