Skip to content

-#2590

Closed
gyeo-ri wants to merge 6 commits intoDaleStudy:mainfrom
gyeo-ri:207-cource-schedule
Closed

-#2590
gyeo-ri wants to merge 6 commits intoDaleStudy:mainfrom
gyeo-ri:207-cource-schedule

Conversation

@gyeo-ri
Copy link
Copy Markdown
Contributor

@gyeo-ri gyeo-ri commented May 8, 2026

[κ²°κ³Ό μš”μ•½]

  • μ‹œλ„ν•œ 둜직 수: 2
    1. μœ„μƒ μ •λ ¬λ‘œ ν‘ΈλŠ” 방법
      • μ‹œκ°„λ³΅μž‘λ„ O(n) / κ³΅κ°„λ³΅μž‘λ„ O(n)
        • μ‹€μ œλ‘œλŠ” numCourses + len(prerequisites) 만큼의 λ³΅μž‘λ„ (O(V+E))
      • 원리: λͺ¨λ“  λ…Έλ“œλ₯Ό μ •λ ¬ν•  수 μžˆλŠ”μ§€ 체크(μˆœν™˜μ΄ 있으면 λͺ¨λ“  λ…Έλ“œ μ •λ ¬ λΆˆκ°€)
      image
    2. DFSλ₯Ό ν™œμš©ν•˜λŠ” 방법
      • 1번과 λ™μΌν•˜κ²Œ O(V+E)
      • 원리: 탐색(λΉ„μˆœν™˜μΌλ•Œλ§Œ κ°€λŠ₯)을 μ™„λ£Œν•  수 μžˆλŠ”μ§€ μ²΄ν¬ν•΄μ„œ μˆœν™˜ μ—¬λΆ€λ₯Ό νŒλ‹¨
      image

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented May 8, 2026

⚠️ Week 섀정이 λˆ„λ½λ˜μ—ˆμŠ΅λ‹ˆλ‹€

ν”„λ‘œμ νŠΈμ—μ„œ Weekλ₯Ό μ„€μ •ν•΄μ£Όμ„Έμš”!

μ„€μ • 방법

  1. PR 우츑의 Projects μ„Ήμ…˜μ—μ„œ λ¦¬νŠΈμ½”λ“œ μŠ€ν„°λ”” μ˜† λ“œλ‘­λ‹€μš΄(β–Ό) 클릭
  2. ν˜„μž¬ μ£Όμ°¨λ₯Ό μ„ νƒν•΄μ£Όμ„Έμš” (예: Week 14(current) λ˜λŠ” Week 14)

πŸ“š μžμ„Έν•œ κ°€μ΄λ“œ 보기


πŸ€– 이 λŒ“κΈ€μ€ GitHub App을 톡해 μžλ™μœΌλ‘œ μž‘μ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

@github-actions github-actions Bot added the py label May 8, 2026
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.

🏷️ μ•Œκ³ λ¦¬μ¦˜ νŒ¨ν„΄ 뢄석

  • νŒ¨ν„΄: DFS, Topological Sort
  • μ„€λͺ…: 이 μ½”λ“œλŠ” κ·Έλž˜ν”„ 탐색을 μœ„ν•΄ DFS와 μœ„μƒ μ •λ ¬(큐 기반)을 μ‚¬μš©ν•˜μ—¬ μˆœν™˜ μ—¬λΆ€λ₯Ό νŒλ‹¨ν•˜λŠ” λ°©μ‹μœΌλ‘œ 문제λ₯Ό ν•΄κ²°ν•©λ‹ˆλ‹€. 두 방법 λͺ¨λ‘ κ·Έλž˜ν”„μ˜ λ°©ν–₯μ„±κ³Ό μˆœμ„œλ₯Ό κ³ λ €ν•˜λŠ” λŒ€ν‘œμ  νŒ¨ν„΄μž…λ‹ˆλ‹€.

πŸ“Š μ‹œκ°„/곡간 λ³΅μž‘λ„ 뢄석

ℹ️ 이 νŒŒμΌμ—λŠ” 2κ°€μ§€ 풀이가 ν¬ν•¨λ˜μ–΄ μžˆμ–΄ 각각 λΆ„μ„ν•©λ‹ˆλ‹€.

풀이 1: Solution.canFinish (DFS) β€” Time: O(V + E) / Space: O(V + E)
λ³΅μž‘λ„
Time O(V + E)
Space O(V + E)

ν”Όλ“œλ°±: κ·Έλž˜ν”„μ˜ λ…Έλ“œ μˆ˜μ™€ κ°„μ„  μˆ˜μ— λΉ„λ‘€ν•˜λŠ” DFS 탐색을 μˆ˜ν–‰ν•˜λ©°, 탐색 μƒνƒœλ₯Ό κΈ°λ‘ν•˜μ—¬ μˆœν™˜ μ—¬λΆ€λ₯Ό νŒλ‹¨ν•œλ‹€.

κ°œμ„  μ œμ•ˆ: ν˜„μž¬ κ΅¬ν˜„μ΄ μ μ ˆν•΄ λ³΄μž…λ‹ˆλ‹€.

풀이 2: Solution.canFinish (μœ„μƒ μ •λ ¬) β€” Time: O(V + E) / Space: O(V + E)
λ³΅μž‘λ„
Time O(V + E)
Space O(V + E)

ν”Όλ“œλ°±: μ„ μˆ˜ κ³Όλͺ© 수λ₯Ό μ„Έκ³ , κ°€λŠ₯ν•œ κ°•μ˜λ₯Ό μ°¨λ‘€λ‘œ μ²˜λ¦¬ν•˜λ©°, λͺ¨λ“  κ°•μ˜λ₯Ό μˆ˜κ°•ν•  수 μžˆλŠ”μ§€ μ—¬λΆ€λ₯Ό νŒλ‹¨ν•œλ‹€.

κ°œμ„  μ œμ•ˆ: ν˜„μž¬ κ΅¬ν˜„μ΄ μ μ ˆν•΄ λ³΄μž…λ‹ˆλ‹€.

πŸ’‘ 풀이에 μ‹œκ°„/곡간 λ³΅μž‘λ„λ₯Ό μ£Όμ„μœΌλ‘œ λ‚¨κ²¨λ³΄μ„Έμš”!

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented May 8, 2026

πŸ“Š gyeo-ri λ‹˜μ˜ ν•™μŠ΅ ν˜„ν™©

이번 주 제좜 문제

문제 λ‚œμ΄λ„ μœ ν˜• 뢄석
course-schedule Medium βœ… μ˜λ„ν•œ μœ ν˜•

λˆ„μ  ν•™μŠ΅ μš”μ•½

  • ν’€μ΄ν•œ 문제: 10 / 75개
  • 이번 μ£Ό μœ ν˜• 일치율: 100% (1문제 쀑 1문제 일치)

문제 풀이 ν˜„ν™©

μΉ΄ν…Œκ³ λ¦¬ 진행도 μ™„λ£Œ
Binary β– β– β– β–‘β–‘β–‘β–‘ 2 / 5 (Easy 2)
Linked List β– β– β–‘β–‘β–‘β–‘β–‘ 2 / 6 (Easy 2)
Array β– β– β–‘β–‘β–‘β–‘β–‘ 3 / 10 (Easy 2, Medium 1)
String β– β– β–‘β–‘β–‘β–‘β–‘ 3 / 10 (Medium 2, Easy 1)
Dynamic Programming β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0 / 11 ← 아직 μ‹œμž‘ μ•ˆ 함
Graph β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0 / 8 ← 아직 μ‹œμž‘ μ•ˆ 함
Interval β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0 / 5 ← 아직 μ‹œμž‘ μ•ˆ 함
Matrix β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0 / 4 ← 아직 μ‹œμž‘ μ•ˆ 함
Tree β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0 / 14 ← 아직 μ‹œμž‘ μ•ˆ 함
Heap β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0 / 3 ← 아직 μ‹œμž‘ μ•ˆ 함

πŸ€– 이 λŒ“κΈ€μ€ GitHub App을 톡해 μžλ™μœΌλ‘œ μž‘μ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

πŸ”’ API μ‚¬μš©λŸ‰ (gpt-4.1-nano)
μš”μ²­ μž…λ ₯ 토큰 좜λ ₯ 토큰 합계 λΉ„μš©
1 1,189 35 1,224 $0.000133

@gyeo-ri gyeo-ri closed this May 8, 2026
@gyeo-ri
Copy link
Copy Markdown
Contributor Author

gyeo-ri commented May 8, 2026

개인 Repo의 PR을 잘λͺ» μ˜¬λ €μ„œ Closeν–ˆμŠ΅λ‹ˆλ‹€..!

@gyeo-ri gyeo-ri deleted the 207-cource-schedule branch May 8, 2026 07:33
@gyeo-ri gyeo-ri changed the title 207. Cource Schedule - May 8, 2026
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.

1 participant