-
-
Notifications
You must be signed in to change notification settings - Fork 335
Open
Conversation
@github-project-automation
github-project-automation
Bot
moved this to Solving
in 리νΈμ½λ μ€ν°λ 7κΈ°
Jun 12, 2026
Contributor
π reeseo3o λμ νμ΅ νν©μ΄λ² μ£Ό μ μΆ λ¬Έμ
λμ νμ΅ μμ½
λ¬Έμ νμ΄ νν©
π€ μ΄ λκΈμ GitHub Appμ ν΅ν΄ μλμΌλ‘ μμ±λμμ΅λλ€. π’ API μ¬μ©λ (gpt-4.1-nano)
|
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π·οΈ μκ³ λ¦¬μ¦ ν¨ν΄ λΆμ
- ν¨ν΄: DFS
- μ€λͺ : μ΄ μ½λλ μ¬κ· νΈμΆμ ν΅ν΄ νΈλ¦¬μ λͺ¨λ λ Έλλ₯Ό λ°©λ¬Ένλ©° μλΈνΈλ¦¬ μ¬λΆλ₯Ό κ²μ¬νλ λ°©μμΌλ‘, κΉμ΄ μ°μ νμ(DFS) ν¨ν΄μ μν©λλ€.
π μκ°/κ³΅κ° λ³΅μ‘λ λΆμ
| 볡μ‘λ | |
|---|---|
| Time | O(n * m) |
| Space | O(h + m) |
νΌλλ°±: μ 체 νΈλ¦¬μ κ° λ Έλμ λν΄ μλΈνΈλ¦¬ μΌμΉ μ¬λΆλ₯Ό κ²μ¬νλλ°, κ° κ²μ¬μμ λ νΈλ¦¬μ λ Έλ μμ λΉλ‘νλ μκ°μ΄ μμλ©λλ€. λ°λΌμ μ΅μ μ κ²½μ° μκ° λ³΅μ‘λλ O(n * m)μ λλ€.
κ°μ μ μ: νμ¬ κ΅¬νμ΄ μ μ ν΄ λ³΄μ λλ€.
π‘ νμ΄μ μκ°/κ³΅κ° λ³΅μ‘λλ₯Ό μ£ΌμμΌλ‘ λ¨κ²¨λ³΄μΈμ!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
λ΅μ μ μΆ λ¬Έμ
μμ±μ μ²΄ν¬ λ¦¬μ€νΈ
In Reviewλ‘ μ€μ ν΄μ£ΌμΈμ.κ²ν μ μ²΄ν¬ λ¦¬μ€νΈ
Important
λ³ΈμΈ λ΅μ μ μΆ λΏλ§ μλλΌ λ€λ₯Έ λΆ PR νλ μ΄μμ λ°λμ κ²ν λ₯Ό ν΄μ£Όμ μΌ ν©λλ€!