Skip to content

[grapefruit13] WEEK 04 Solutions#2474

Merged
grapefruit13 merged 2 commits intoDaleStudy:mainfrom
grapefruit13:main
Mar 27, 2026
Merged

[grapefruit13] WEEK 04 Solutions#2474
grapefruit13 merged 2 commits intoDaleStudy:mainfrom
grapefruit13:main

Conversation

@grapefruit13
Copy link
Copy Markdown
Contributor

@grapefruit13 grapefruit13 commented Mar 26, 2026

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

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

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

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

Important

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

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

@grapefruit13 grapefruit13 self-assigned this Mar 26, 2026
@grapefruit13 grapefruit13 changed the title solution of maximum depth of binary tree [grapefruit13] WEEK 04 Solutions Mar 26, 2026
Copy link
Copy Markdown
Contributor

@liza0525 liza0525 left a comment

Choose a reason for hiding this comment

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

๊น”๋”ํ•˜๊ฒŒ ์ฝ”๋“œ๋ฅผ ์ •๋ฆฌํ•ด์„œ ๋ฌธ์ œ๋ฅผ ํ’€์–ด์ฃผ์…”์„œ ๋ฆฌ๋ทฐํ•˜๋Š” ๋ฐ ๋ฌด๋ฆฌ ์—†์—ˆ์Šต๋‹ˆ๋‹ค! ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค :)
์ด๋ฒˆ์ฃผ๋„ ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค! ๐Ÿ‘๐Ÿผ

list1: ListNode | null,
list2: ListNode | null
): ListNode | null {
const dummy = new ListNode(0);
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.

์•„์ฃผ ์‚ฌ์†Œํ•œ ์˜๊ฒฌ์ž…๋‹ˆ๋‹ค! dummy ๋…ธ๋“œ์—” 0์„ ๋„ฃ์ง€ ์•Š์•„๋„ ๊ฐ€๋Šฅํ•  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
ListNode ๊ฐ์ฒด ์„ ์–ธ ์‹œ this.val = val === undefined ? 0 : val;๋ผ๊ณ  ๋˜์–ด ์žˆ์–ด์„œ์š” :)
ํ•˜์ง€๋งŒ ์„ฑ๋Šฅ์—๋Š” ์ „ํ˜€ ๋ฌธ์ œ๊ฐ€ ์—†์„ ๊ฑฐ ๊ฐ™์Šต๋‹ˆ๋‹ค ใ…Žใ…Ž

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

์ œ๊ฐ€ ๋†“์นœ ๋ถ€๋ถ„์„ ์งš์–ด์ฃผ์…จ๋„ค์š”! ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค๐Ÿ‘

@grapefruit13 grapefruit13 merged commit 2a0fd57 into DaleStudy:main Mar 27, 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.

2 participants