Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
๐ ํผ ๋ฌธ์ ๋ค
์ ๋ต ํ์ด๋ฅผ ์ฐธ๊ณ ํด์ ๋ฐ๋ก ์ฝ๋ฉํธ ์ ์ฃผ์ ๋ ๋ ๊ฒ ๊ฐ์ต๋๋ค :)
๐ ๊ฐ๋จํ ํ์ด ๊ณผ์
ํ์ ํฐํธ๋ฆฌ๊ธฐ
๋ฌธ์ ๋ฅผ ๋จ์ํํ๋ฉด, ์ผ์ชฝ๊ณผ ์ค๋ฅธ์ชฝ ๊ฐ๊ฐ์์ ํ์ ์ด ์ค์ด๋ค๋ฉด์ ์ฌํ ๋ฐ,
๋ฒํธ๊ฐ ๋ ์์ ํ์ ์ ํฐํธ๋ฆฌ๋ ํ์๋ ์ต๋ 1๋ฒ์ด๋ฏ๋ก
์์ชฝ์์ ์ค๋ ํ์ ์ด ๋ชจ๋ ๋ค ์์ ์ ๊ฐ๋ณด๋ค ์๋ค๋ฉด ์ด์๋จ๋ ๊ฒ์ด ๋ถ๊ฐ๋ฅํด์ง๋ค.
ํน์ ๊ฐ๋ถํฐ ์ผ์ชฝ ์ต์์ ์ค๋ฅธ์ชฝ ์ต์๋ฅผ ์ ์ ์๊ฒ
left_min ๋ฐฐ์ด๊ณผ right_min ๋ฐฐ์ด์ ๋์๊ณ ์์๋ ์๋์ ๊ฐ๋ค.
์ ์ถ๋ ฅ ์์ 2๋ฒ
๋ ๋ฐฐ์ด์ ๊ตฌํ๊ณ ์ธ๋ฑ์ค๋ฅผ ์ํํ๋ฉด์ ์ด์๋จ์ ์ ์๋ ํ์ ์ ๊ฐ์๋ฅผ ๊ตฌํ๊ณ ์ ์ฒด์์ ๋นผ์ค๋ค.