Leetcode 207 Course Schedule | Python

Опубликовано: 13 Июнь 2026
на канале: CodingCat Leo
285
1

#python3 #leetcode #coding #interview #amazontinterview #facebookinterview

00:00 Introduction
00:59 Topological sorting
02:37 How to build the graph
03:20 Python code of topological sorting
04:11 DFS
06:25 Python code of DFS

Code link: https://leetcode.com/problems/course-...

Interview Companies:
Facebook Amazon Apple Microsoft Karat Google Adobe TikTok Oracle Yahoo Coupang ByteDance Walmart Labs

Approaches:
Topological sorting O(n)
DFS O(n)